Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement environment variables in a standardized way. #4

Open
Tracked by #3
Poikilos opened this issue Jun 10, 2022 · 0 comments
Open
Tracked by #3

Implement environment variables in a standardized way. #4

Poikilos opened this issue Jun 10, 2022 · 0 comments

Comments

@Poikilos
Copy link
Collaborator

Poikilos commented Jun 10, 2022

Using URL[$e] (at least for new shortcuts) will make the format more standardized. The new standard way of doing this (at least known to work in KDE) is by using [$e] to enable environment variables:

[Desktop Entry]
Type=Link
URL[$e]=$HOME/Documents/unnumbered/Spirits of Namaman.png

The separate mimetype will still be necessary for the following cases:

  • For cross-platform compatibility (such as when using Nextcloud)
  • When using ~ to represent HOME
  • When using variables when on windows.

The following doesn't work according to standards, but for backward compatibility with older versions of blnk, it could be forced to work:

[Desktop Entry]
Type=Link
URL=$HOME/Documents/unnumbered/Spirits of Namaman.png
  • fails since [$e] is required to enable environment variables

GNOME doesn't support $e: https://forum.kde.org/viewtopic.php?t=32909, but blnk could overcome this by having its own MIME type for shortcuts.

For the most compatibility, $e could be excluded when not necessary as per issue #3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant