Score:0

exo-desktop-item-edit parameters for command

ye flag

I created a desktop launcher for exo-desktop-item-edit with this command:

exo-desktop-item-edit --create-new ~/.local/share/applications

However, when starting the launcher to create a new launcher, it is asking for a filename / location when saving.

Seems like the --create-new ~/.local/share/applications parameter is ignored when being run as launcher command while it works fine from the command line.

This is the .desktop file:

[Desktop Entry]
Version=1.0
Type=Application
Name=Create Launcher
Comment=
Exec=exo-desktop-item-edit --create-new ~/.local/share/applications
Icon=applications-other
Path=
Terminal=false
StartupNotify=false
hr flag
AFAIK shell constructs like `~` are not supported in a .desktop file Exec key - you'll likely need to either replace it with a literal path or wrap the whole command line in a `sh -c ' ... '`
Alexander Zeitler avatar
ye flag
Thanks, using an absolute path (not sure what "literal path" means) fixed it.
hr flag
Haha I couldn't think of a better term than "literal" since arguably `~/` is itself an absolute path - or, at least, isn't a relative path - see for example [Is `~/Documents` a relative or an absolute path?](https://unix.stackexchange.com/questions/221970/is-documents-a-relative-or-an-absolute-path)
I sit in a Tesla and translated this thread with Ai:

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.