flathub / dev.vencord.Vesktop

https://flathub.org/apps/details/dev.vencord.Vesktop
8 stars 7 forks source link

Support for launching Vesktop with custom flags from vesktop-flags.conf file #24

Closed kibirisu closed 4 days ago

kibirisu commented 4 days ago

To open Electron / CEF apps under Wayland on my machine with hybrid graphics (Intel + Nvidia) I need to pass additional flags. I'm aware that the app by default is launched with --ozone-platform=wayland. However, in my case, it is required to include --use-angle=vulkan to make things work.

Can this app respect flags read from a conf file like it does Electron, Chromium and many other apps based on these?

Vendicated commented 4 days ago

this is not really possible because of the sandbox. you'd have to put the file in ~/.var/app/dev.vencord.Vesktop/config which is not very accessible

your best bet is overriding the .desktop file to add your own switches there

Vendicated commented 4 days ago

do you know of any other flatpaks that provide such functionality, e.g. chromium? would be helpful to see how others solved it

kibirisu commented 4 days ago

your best bet is overriding the .desktop file to add your own switches there

This worked like a charm. Thanks!

do you know of any other flatpaks that provide such functionality, e.g. chromium? would be helpful to see how others solved it

com.spotify.Client

kibirisu commented 4 days ago

I'm closing for now because changing the desktop entry file resolve my issue.

However, I realized that I don't know if that change will be persistent between updates.

Vendicated commented 4 days ago

This worked like a charm. Thanks!

Note that you'll have to repeat this step every time the package updates. Or you could copy the .desktop file to ~/.local/share/applications and make your edits there and make sure your DE prefers that directory

com.spotify.Client

yeah exactly like I said, it reads from the flatpak folder. I guess we could do this as well, it's the best that can be done