|
|||||||
Написание desktop-файла
Время создания: 17.08.2015 11:18
Текстовые метки: desktop
Раздел: Linux - DE/WM
Запись: ivnglkv/mytetra/raw/master/base/14397995087vojmwtbr3/text.html на bitbucket.org
|
|||||||
|
|||||||
[Desktop Entry]
Version=1.0 Name=BackMeUp Comment=Back up your data with one click Exec=/home/alex/Documents/backup.sh Icon=/home/alex/Pictures/backup.png Terminal=false Type=Application Categories=Utility;Application;
One last thing to add is that by setting executable rights to your .desktop file, it automatically takes the specified Icon and Name (specified in the corresponding fields), as it should be. Be careful though, the filename doesn't really change, it still remains 'launcher_name_here.desktop' and not 'Name_field_here', the system chooses to display it like 'Name_field_here' because it's nicer without the .desktop extension. In order to add your launcher to the Unity Launcher on the left, you select and drag it onto the Launcher panel. Alternatively, you can place your .desktop file at /usr/share/applications/ or at ~/.local/share/applications/. After moving your file there, search for it in the Dash (Windows key -> type the name of the application) and drag and drop it to the Unity Launcher. Now your launcher (.desktop file) is locked on the Unity Launcher! If your desktop file cannot be found by doing a search from the Dash, you may need to read on... To be more certain that your .desktop file will work properly, use the desktop file validator, which will notify you of any errors or omissions. If there are no errors, desktop-file-validate will exit silently. Once the file validates correctly, install it to the default location (probably /usr/share/applications) using the desktop-file-install program. This step may require superuser privileges. The desktop-file-install program may add some lines of its own to your .desktop file. There is no need to have the .desktop file be executable by anyone. Please note that desktop-file-validate tends to be oversensitive at times, which means that it can output error messages on perfectly working .desktop files. Those error messages should be better seen as warnings rather than anything else. For more information on desktop entry specification please refer to http://standards.freedesktop.org/desktop-entry-spec/latest/ |
|||||||
Так же в этом разделе:
|
|||||||
|
|||||||
|