aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-04-09 17:17:14 +0200
committerdec05eba <dec05eba@protonmail.com>2023-04-09 17:17:14 +0200
commit2723d51ec5ddbc4bd7b2479aaabc07ae397c89e6 (patch)
treee1d589a346bfa857101a04f6ab7737c6f5db2d5f /src
parent902e18d6c5f1a6b87932582c87f56ccd4c9dac94 (diff)
Use flatpak-spawn to run flatpak command from inside flatpak
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 9c8636a..fe8f5c5 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1541,7 +1541,7 @@ static bool is_pkexec_installed() {
}
static bool flatpak_is_installed_as_system(void) {
- return system("flatpak run --system --command=pwd com.dec05eba.gpu_screen_recorder") == 0;
+ return system("flatpak-spawn --host flatpak run --system --command=pwd com.dec05eba.gpu_screen_recorder") == 0;
}
typedef gboolean (*KeyPressHandler)(GtkButton *button, gpointer userdata);