From ccb6b3d4180b4fd0a6b5af55f4e33475e259634c Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 29 Aug 2022 15:39:15 +0200 Subject: [PATCH] Add special Wayland args to Electron on Linux only --- cmds/portmaster-start/run.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmds/portmaster-start/run.go b/cmds/portmaster-start/run.go index cf7aabf4..588c6e9c 100644 --- a/cmds/portmaster-start/run.go +++ b/cmds/portmaster-start/run.go @@ -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",