Fix linter error and make identifier check more explicit
This commit is contained in:
@@ -122,17 +122,18 @@ func getExecArgs(opts *Options, cmdArgs []string) []string {
|
|||||||
args = append(args, "--input-signals")
|
args = append(args, "--input-signals")
|
||||||
}
|
}
|
||||||
|
|
||||||
// see https://www.freedesktop.org/software/systemd/man/pam_systemd.html#type=
|
if opts.Identifier == "app/portmaster-app.zip" {
|
||||||
if xdgSessionType := os.Getenv("XDG_SESSION_TYPE"); xdgSessionType == "wayland" && opts.Identifier == "app/portmaster-app.zip" {
|
// see https://www.freedesktop.org/software/systemd/man/pam_systemd.html#type=
|
||||||
// we're running the Portmaster UI App under Wayland so make sure we add some arguments
|
if xdgSessionType := os.Getenv("XDG_SESSION_TYPE"); xdgSessionType == "wayland" {
|
||||||
// required by Electron
|
// we're running the Portmaster UI App under Wayland so make sure we add some arguments
|
||||||
args = append(args,
|
// required by Electron
|
||||||
[]string{
|
args = append(args,
|
||||||
"--enable-features=UseOzonePlatform",
|
[]string{
|
||||||
"--ozone-platform=wayland",
|
"--enable-features=UseOzonePlatform",
|
||||||
}...,
|
"--ozone-platform=wayland",
|
||||||
)
|
}...,
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
args = append(args, cmdArgs...)
|
args = append(args, cmdArgs...)
|
||||||
|
|||||||
Reference in New Issue
Block a user