.desktop: Difference between revisions

From miki
Jump to navigation Jump to search
(Created page with "Desktop file with extension {{file|.desktop}}.")
 
No edit summary
Line 1: Line 1:
Desktop file with extension {{file|.desktop}}.
Desktop file with extension {{file|.desktop}}.

== Tips ==
=== Example desktop file ===
<source lang=text>
[Desktop Entry]
Type=Application
Encoding=UTF-8
Version=1.0
Name=No Name
Name[en_US]=Firefox
Comment[en_US]=Web Browser Firefox
Comment=Web Browser Firefox
Exec=firefox-2
X-GNOME-Autostart-enabled=true
</source>

=== Change environment variable for application ===
Edit the line <code>Exec</code>, and replace with <code>env</code> program.

'''Note''': If Exec program is not found, the .desktop file will not be listed by Gnome / desktop environment!!!

<source lang=diff>
-Exec=playonlinux %F
+Exec=env LC_ALL=en_US.UTF-8 playonlinux %F
</source>

Revision as of 16:51, 12 April 2020

Desktop file with extension .desktop.

Tips

Example desktop file

[Desktop Entry]
Type=Application
Encoding=UTF-8
Version=1.0
Name=No Name
Name[en_US]=Firefox
Comment[en_US]=Web Browser Firefox
Comment=Web Browser Firefox
Exec=firefox-2
X-GNOME-Autostart-enabled=true

Change environment variable for application

Edit the line Exec, and replace with env program.

Note: If Exec program is not found, the .desktop file will not be listed by Gnome / desktop environment!!!

-Exec=playonlinux %F
+Exec=env LC_ALL=en_US.UTF-8 playonlinux %F