From c600ab83a0cf14124cf0a5652175feee5ed94ee9 Mon Sep 17 00:00:00 2001 From: nmlynch94 Date: Sun, 23 Mar 2025 23:46:58 -0400 Subject: [PATCH] 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. --- src/Eve-O-Preview/Services/Implementation/WindowManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Eve-O-Preview/Services/Implementation/WindowManager.cs b/src/Eve-O-Preview/Services/Implementation/WindowManager.cs index d792539..9a8768f 100644 --- a/src/Eve-O-Preview/Services/Implementation/WindowManager.cs +++ b/src/Eve-O-Preview/Services/Implementation/WindowManager.cs @@ -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 (Environment.GetEnvironmentVariable("container") == "flatpak") { - cmd = $"-c \"flatpak-spawn --host {this._wmctrlLocation}/wmctrl -a \"\"" + windowName + "\"\"\""; + cmd = $"-c \"flatpak-spawn --host wmctrl -a \"\"" + windowName + "\"\"\""; } else {