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

[Linux] Gnome fails to parse XDG desktop entry #18

Open
therealkrispet opened this issue May 25, 2020 · 1 comment
Open

[Linux] Gnome fails to parse XDG desktop entry #18

therealkrispet opened this issue May 25, 2020 · 1 comment

Comments

@therealkrispet
Copy link

The package seems to create a desktop file entry in accordance with the XDG specification at the path ~/.config/autostart. However, this file seem defective, as Gnome fails to parse them with the following journal error:

gnome-session-binary[1894]: WARNING: Could not parse desktop file ProtonMail Bridge.desktop or it references a not found TryExec binary

I believe this to be an issue with the double hyphenations in the "Exec" field. I see that you've tried working around the issue by escaping those, but it seems that Gnome fails to parse these properly (I'm guessing it works fine on other desktop environments).

On my system I've managed to apply an ugly hack in the form of:

Exec=sh -c "/usr/lib/protonmail/bridge/protonmail-bridge --no-window"

I'm not sure how presentable this solution is, but I was too lazy to come up with anything nicer.

@rpolve
Copy link

rpolve commented Jun 10, 2020

On my system I've managed to apply an ugly hack in the form of:

Exec=sh -c "/usr/lib/protonmail/bridge/protonmail-bridge --no-window"

I'm not sure how presentable this solution is, but I was too lazy to come up with anything nicer.

If it works, I don't see any problem in this.

What leaves me perplexed is the DE-specific choice of strategy for dealing with autostart. A systemd unit would have been better.

This is what I use:

/usr/lib/systemd/user/protonmail-bridge.service
---
[Unit]
Description=Protonmail Bridge
After=network.target

[Service]
ExecStart=/usr/lib/protonmail/bridge/protonmail-bridge --noninteractive

[Install]
WantedBy=default.target

Then systemctl --user enable protonmail-bridge.

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

2 participants