flathub / com.wire.WireDesktop

https://flathub.org/apps/details/com.wire.WireDesktop
1 stars 1 forks source link

Wire autorun at start #4

Open alexjp opened 5 years ago

alexjp commented 5 years ago

When I enable the option to autostart, it doesn't work.

Checking the file on ~/.config/autostart/wire-desktop.desktop, it seems to point to exec:

Exec=/app/Wire/wire-desktop --hidden

which doesn't exist. Should the desktop file be patched to full flatpak exec command line ? Like example:

Exec=flatpak run com.wire.WireDesktop/x86_64/stable --hidden
x80486 commented 5 years ago

Let me check if there is any Flatpak application that works in such a way – with the auto-start feature/setting.

By the way, I tried manually changing the Exec key in the generated ~/.config/autostart/wire-desktop.desktop file, and that didn't work.

TingPing commented 5 years ago

Let me check if there is any Flatpak application that works in such a way – with the auto-start feature/setting.

Nobody does. Ideally there would be a portal to request autostart.

By the way, I tried manually changing the Exec key in the generated ~/.config/autostart/wire-desktop.desktop file, and that didn't work.

There is no reason it shouldn't.

kacperpaczos commented 5 years ago

On my Linux Mint 19.1 Wire (flatpak) doesn't autostart. /app/Wire/wire-desktop --hidden

On my other computer with Linux Mint 19 Wire autostart correctly: /opt/Wire/wire-desktop --hidden

TingPing commented 5 years ago

Something like flatpak run com.wire.WireDesktop --hidden

x80486 commented 5 years ago

I think if flatpak run com.wire.WireDesktop --hidden works, I can try to put a request for them to add it in such a way. It would be a matter of identifying when Wire is running as a Flatpak (easy, just checking if /.flatpak-info exists) and later on modifying the entry that's created in $HOME/.config/autostart/wire-desktop.desktop.

That until the portal exists :sunglasses:

TingPing commented 5 years ago

@x80486 Ideally flatpaks have no access to writing to home, codifying features that rely on that is a bad idea.

x80486 commented 5 years ago

OK, I'll hold off from this one until there is a portal.

In the meantime, if people want this, they can still create the auto-start entry from Wire itself (will be here: ~/.config/autostart/wire-desktop.desktop), edit it, and assign flatpak run com.wire.WireDesktop --hidden to the Exec key...that will work.

Mikaela commented 5 years ago

I think https://github.com/flatpak/flatpak/issues/118 is the upstream-flatpak issue and it was closed a week ago.

They link to https://github.com/flatpak/xdg-desktop-portal/blob/master/data/org.freedesktop.impl.portal.Background.xml

x80486 commented 5 years ago

@Mikaela, I have no idea where the e-mail notification for your comment went :smirk: ...I just saw this one.

Let me see if there is some documentation already about this. Moreover, if you know already how to do it and want to send a Pull Request, go for it :sunglasses: