fix: fix flatpak wmctrl interaction by removing absolute path in flatpak-spawn command. This will rely on the host path and work in more circumstances since most flatpaks don't allow access to /usr/bin.
This commit is contained in:
@@ -139,7 +139,7 @@ namespace EveOPreview.Services.Implementation
|
|||||||
// If we are in a flatpak, then use flatpak-spawn to run wmctrl outside the sandbox
|
// If we are in a flatpak, then use flatpak-spawn to run wmctrl outside the sandbox
|
||||||
if (Environment.GetEnvironmentVariable("container") == "flatpak")
|
if (Environment.GetEnvironmentVariable("container") == "flatpak")
|
||||||
{
|
{
|
||||||
cmd = $"-c \"flatpak-spawn --host {this._wmctrlLocation}/wmctrl -a \"\"" + windowName + "\"\"\"";
|
cmd = $"-c \"flatpak-spawn --host wmctrl -a \"\"" + windowName + "\"\"\"";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user