Wednesday, May 1, 2024
 Popular · Latest · Hot · Upcoming
33
rated 0 times [  33] [ 0]  / answers: 1 / hits: 36585  / 3 Years ago, wed, may 5, 2021, 11:03:31

I am looking for the specs necessary to build a .desktop file to be used in Ubuntu 11.10.



Many terminal applications or even GUI application do not show on Open with other application tab anymore and I want to create a .desktop file that makes that application be listed on the list again.



I know that you can create a .desktop file and place it in ~/.local/share/applications but I do not know what all those settings mean.



Is there a guide that allows me to customize my .desktop files to my needs?


More From » nautilus

 Answers
3

An example of a .desktop file to select vim terminal editor for your files in the Open with other application dialog is



[Desktop Entry]
Encoding=UTF-8
Name=Vim Text Editor (Console)
Comment=Edit text files in a console using Vim
Exec=vim %u
Terminal=true
Type=Application
Icon=/usr/share/pixmaps/vim.svg
Categories=Application;Utility;TextEditor;
StartupNotify=true
MimeType=text/plain;
NoDisplay=true


Save this as ~/.local/share/applications/vim.desktop and the application will be automatically shown on Open with other application to be selected as default application.



The options for the .desktop files are many but its important to know what they mean.



nautilus-actions.org supplies a very good guide and explanations for creating your .desktop files and all the possible parameters that you can use on them so if you have any doubts about creating a special .desktop file you can visit the site and look at the examples there.


[#42533] Thursday, May 6, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
gliroopy

Total Points: 290
Total Questions: 115
Total Answers: 114

Location: Egypt
Member since Tue, May 3, 2022
2 Years ago
;