mirror of
https://github.com/safing/portmaster
synced 2025-09-02 10:39:22 +00:00
Merge pull request #820 from safing/fix/add-wayland-args-on-linux-only
Add special Wayland args to Electron on Linux only
This commit is contained in:
commit
c459b0f4af
1 changed files with 2 additions and 2 deletions
|
@ -125,11 +125,11 @@ func getExecArgs(opts *Options, cmdArgs []string) []string {
|
|||
args = append(args, "--input-signals")
|
||||
}
|
||||
|
||||
if opts.Identifier == "app/portmaster-app.zip" {
|
||||
if runtime.GOOS == "linux" && opts.Identifier == "app/portmaster-app.zip" {
|
||||
// see https://www.freedesktop.org/software/systemd/man/pam_systemd.html#type=
|
||||
if xdgSessionType := os.Getenv("XDG_SESSION_TYPE"); xdgSessionType == "wayland" {
|
||||
// we're running the Portmaster UI App under Wayland so make sure we add some arguments
|
||||
// required by Electron
|
||||
// required by Electron.
|
||||
args = append(args,
|
||||
[]string{
|
||||
"--enable-features=UseOzonePlatform,WaylandWindowDecorations",
|
||||
|
|
Loading…
Add table
Reference in a new issue