💾 Archived View for pwshnotes.flounder.online › gemlog › 2022-04-28-launcher-specification.gmi captured on 2022-04-28 at 18:02:01. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

Linux Shortcut Specification

If you edit a desktop launcher or shortcut on Linux, you might see a command like this:

/usr/lib/firefox/firefox %u

The first part is a path to the Firefox executable. This is the application that runs. And if pasted into a terminal, that path would start Firefox on its own.

The second part is specific to launchers. It is part of the Desktop Entry Specification. Specifically, these are fields codes for the Exec key.

For example, %u represents a single URL which makes sense since Firefox might be receiving a URL from the desktop environment while launching. This placeholder in the launcher represents the URL.

So, for example, if I wanted to add a parameter to the launcher, I would add it before the URL. Typically, the file or URL is provided last.

/usr/bin/vivaldi-stable --disable-gpu %U

You can find a link to the field codes below.

References

Exec Key | Desktop Entry Specification

Created: Thursday, April 28, 2022

Updated: Thursday, April 28, 2022