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:
nmlynch94
2025-03-23 23:46:58 -04:00
committed by Nate Lynch
parent ecbb3270e6
commit c600ab83a0

View File

@@ -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
{ {