Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
xfce:xfce4-panel:launcher [2012/01/12 00:01]
nick [Style Properties]
xfce:xfce4-panel:launcher [2019/11/13 02:18] (current)
kevinbowen
Line 1: Line 1:
 ====== Launcher ====== ====== Launcher ======
 +The Launcher panel plugin allows you to create application shortcuts and display them on your panel.
  
-The //​Launcher//​ panel plugin allows you to create application shortcuts and display them in your panel. 
  
-===== Usage =====+===== Add New Launchers ​===== 
 +Besides adding launchers with the [[add-new-items|Add New Items]] window, it is also possible to drag-and-drop ''​.desktop''​ files straight onto the panel. A common way to do this is by finding the desired application in [[..:​xfce4-appfinder:​|Application Finder]], and then dragging it from the list and onto the panel.
  
-==== Add New Launchers ====+<note tip>If you try to drop it in between two existing launchers, Xfce will attempt to open the ''​.desktop''​ file with the nearest application. To prevent this, hold down **Ctrl** as you drag and drop the item.</​note>​
  
-Beside adding ​launchers ​with the [[add-new-items|Add New Items]] dialog, it is also possible to drop desktop files on the panelA common way to do this, is by using the [[..:xfce4-appfinder:|Application Finder]] to drag an application from the view and drop it in the panel.\\  +===== Arguments ===== 
-If you try to drop between two launchers, you'll notice it will result in opening the .desktop file with the launcher-application. To avoid this, hold the {key>​Ctrl} button and you will be able to place a new launcher between 2 existing launchers.+All launchers ​accept ''​text/​uri-list''​ as arguments when dropped on the launcher button, it will be used as an argument for the first application in the items listSee the [[https://​docs.xfce.org/xfce/xfce4-panel/​launcher#​expanding_variables|Expanding Variables]] below for more information.
  
-==== Drag-and-drop ​====+===== Preferences ===== 
 +<figure "​Launcher Preferences">​{{:​xfce:​xfce4-panel:​launcher_props.png?​nolink&​|}}</​figure>​ 
 + 
 +===== General ===== 
 +The **General** tab offers options down the right hand side for manipulating the selected item. 
 + 
 +? Move up / Move down 
 +! Moves the currently selected item up or down in the list. 
 +? Edit the currently selected item 
 +! Opens up an [[https://​docs.xfce.org/​xfce/​exo/​desktop-item-edit#​editing_launchers|Edit Launcher]] window. 
 +? Delete the currently selected item 
 +! Deletes the item from the list. If there is only one item, the launcher on the panel becomes blank. 
 +? Add one or more existing items to the launcher 
 +! Opens an Add New Item window with a list of all installed applications. Additional items added are displayed under a list accessible by an arrow that appears next to the launcher. If more than one items are present in the launcher, the first one that appears in the list is used as the primary target. 
 +? Add a new empty item 
 +! Opens a [[https://​docs.xfce.org/​xfce/​exo/​desktop-item-edit|Create Launcher]] window to create a new item for the list. 
 +? Add a new hyperlink 
 +! Opens a Create Link window to create a new hyperlink, links have to follow a [[https://​www.iana.org/​assignments/​uri-schemes/​uri-schemes.xhtml|URI Scheme]].
  
-All launchers accept //​text/​uri-list//​ drops on the launcher button. If a file is dropped on the panel, it will be used as an argument for the first application in the items-list. See the topic "​Expanding variables"​ below for more information. 
-===== Properties ===== 
  
-<figure "​Launcher'​s properties dialog">​ 
-{{:​xfce:​xfce4-panel:​launcher.png?​nolink&​|}} 
-</​figure>​ 
 ===== Advanced ===== ===== Advanced =====
 +<figure "​Launcher Advanced Preferences">​{{:​xfce:​xfce4-panel:​xfce4-panel-launcher-preferences-advanced.png?​nolink&​|}}</​figure>​
 +
 +? Disable tooltips
 +! Doesn'​t display tooltips when hovering over the launcher.
 +? Show label instead of icon
 +! Displays name of launcher instead of specified icon.
 +? Show last used item in panel
 +! Only available when more than one items are present in the launcher. Shows the last used application / link as the primary item.
 +? Arrow button position
 +! Displays the arrow to access additional items to the left, right, top or bottom of the launcher. The **Inside Button** option displays the arrow inside the launcher and displays the list of launcher items when left-clicking on the launcher.
 +
 +===== Expanding Variables =====
 +
 +Each launcher'​s command is expanded before it is executed, meaning the .desktop files' field codes are processed. [[http://​standards.freedesktop.org/​desktop-entry-spec/​latest/​|See the specification]] for more details.
 +
 +Below are some sample variables:
  
-==== Expanding Variables ​====+<​code>​ 
 +%F 
 +%f 
 +%U 
 +%u 
 +%i 
 +%c 
 +%k 
 +%% 
 +</​code>​ 
 +===== Plugin Events =====
  
-The command ​of each launcher ​is //​expanded//​ before it is executed. This means the [[http://​standards.freedesktop.org/​desktop-entry-spec/​latest/​|.desktop files'​]] field codes are processed.+It is possible to send events to launcher plugins over the command ​line. One example ​is this:
  
-? %F +  xfce4-panel --plugin-event launcher:​disable-tooltips:​bool:​true
-? %f +
-? %U +
-? %u +
-? %i +
-? %c +
-? %k +
-? %%+
  
-===== Style Properties ===== +This will disable the tooltips property for all launcher plugins ​in the panel.
-You can set a custom menu and tooltip icon size in gtk-icon-sizes with the name ''​panel-launcher-menu''​ and ''​panel-launcher-tooltip''​. The default +
-icon sizes are both 32px. Special widget names in this plugin are ''​launcher-button''​ and ''​launcher-arrow''​.+
  
-See the section ​[[theming|Theming]] for more information.+[[|Back To Top]] 
 +---- 
 +[[ :​xfce:​xfce4-panel:​start:​|Return to Main Xfce4-panel page]]