The format strings and desktop entry names are all documented on this page title 'Desktop Entry Specification'.ĭoing the above is enough to make the item appear as an option in 'Open With' on Ubuntu 20.04 without refreshing/relogging or running anything else as it appears to get picked up automatically. If you use '%F', that represents only a single filename. The '%f' will become the one or more filenames that will be passed to the program. The text 'My Custom Thingy' is whatever you want the name in the 'Open With' list to be. Simply change '/usr/bin/gedit' to the path of the executable that you want to open files with. The above example will cause files to be opened in 'gedit'. Now, let's add an entry: sudo vi /usr/share/applications/my_custom_sktopĪnd here is what we'll put inside of the file 'my_custom_sktop': Exec =/usr/bin/gedit %f Name =My Custom Thingy Step 2) Add The New Desktop Entryįor the '.desktop' entry, I'm going to name it 'my_custom_sktop', but you can name it whatever you want as long as it doesn't clash with another existing entry and it ends with '.desktop'. If you're reading this article in a far distant future where the folder has been changed, or you're on a different system other than Ubuntu with different paths, search for a folder on your system with lots of '*.desktop' entries in it. I can also see that in this directory, there are already tons of files that end in '.desktop', so you may be able to use them as a reference. In my case, I'm going to use the '/usr/share/applications/' directory to make this option globally accessible. Inside a specific user's folder at '/home/THE_USER/.local/share/applications/'.Inside the global folder for all users at '/usr/share/applications/'.Most likely, you'll choose one of the following two folders: ![]() To do this, you'll first need to figure out which directory to put it in. In order for your application to show up in the 'Open With' list, you need to add a '.desktop' entry for it. ![]() My overall goal was to get '.kdenlive' project files to open with the Kdenlive AppImage. I decided to write an article on this subject because the last few times that I tried to complete this seemingly simple task, it has taken me at least a couple hours due to forgetting numerous odd details and having to piece it together again from google searches. In particular, we'll review an example of how you can get files to automatically open with a AppImage executable of your choosing. This article is a quick summary of how to add a custom 'Open With' program that can be associated with files of a certain type in Ubuntu 20.04. This combination will open the Terminal on the ‘Home’ directory.Adding A Custom 'Open With' Program In Ubuntu 20.04 - By Robert Elder Hold on the Ctrl and Alt key then press T once. Opening the Terminal using Ctrl + Alt + TĮven for new Ubuntu users, this keyboard shortcut is not new. Our Ubuntu release of choice in this tutorial is Ubuntu 20.04 LTS recently released. We will show five ways that you can use to launch the Terminal and carry out your tasks easily.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |