Score:1

How do I make .desktop files launchable from outside of desktop?

cn flag

I have done the following:

  1. I copied firefox.desktop from /usr/share/applications to ~/Desktop.

  2. In Desktop, I right-clicked and selected Allow launching.

  3. Repeated the same with many such .desktop files.

  4. I created a new folder in Desktop called apps.

  5. Moved all the .desktop files from ~/Desktop to ~/Desktop/apps.

The problem is that the .desktop files are no longer launchable inside the apps folder. By launchable, I mean when I click the .desktop file it actually launches instead of just opening the text file.

So how do I make them launchable?

This is an issue in Ubuntu 21.04 too. There are some improvements in 21.04, such as fixing drag and drop for copy, but this issue looks like it hasn't been fixed in 21.04.

N0rbert avatar
zw flag
Does this answer your question? [Basic desktop actions are not available on Ubuntu 20.04](https://askubuntu.com/questions/1231413/basic-desktop-actions-are-not-available-on-ubuntu-20-04). Simply do not use GNOMEs Hell, install MATE or Cinnamon instead and enjoy.
supersonic avatar
cn flag
@N0rbert nah that one's about copy pasting, my issue is that .desktop's "make launchable" option in right-click menu disappears if I move it out of ~/Desktop. Issue in that link is fixed by upgrading to 21.04, but my issue still exists in 21.04.
cn flag
"How do I make them launchable?" you don't. That ability was removed from GNOME, It is a text file that needs to be PARSED. It is not an executable. `gtk-launch <desktopfile>` is the way do this
cn flag
this does answer it https://askubuntu.com/questions/5172/running-a-desktop-file-in-the-terminal
supersonic avatar
cn flag
@Rinzwind can I run it using double-click? (instead of terminal). I can't believe ubuntu doesn't have this basic functionality.
cn flag
Eh don't blame Ubuntu. Blame the gnome developers: they believe it is up to the filemanager to manage files and that one will not execute text files. As n0rbert said: Mate or cinnamon do not do this. You are not the 1st to complain about it and it is what made ME switch to Ubuntu Budgie
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.