mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-03-31 09:07:13 +09:00
Minor -sc fix for flatpak
This commit is contained in:
11
src/main.cpp
11
src/main.cpp
@@ -1354,16 +1354,17 @@ static void run_recording_saved_script_async(const char *script_file, const char
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *args[6];
|
const char *args[7];
|
||||||
const bool inside_flatpak = getenv("FLATPAK_ID") != NULL;
|
const bool inside_flatpak = getenv("FLATPAK_ID") != NULL;
|
||||||
|
|
||||||
if(inside_flatpak) {
|
if(inside_flatpak) {
|
||||||
args[0] = "flatpak-spawn";
|
args[0] = "flatpak-spawn";
|
||||||
args[1] = "--host";
|
args[1] = "--host";
|
||||||
args[2] = script_file_full;
|
args[2] = "--";
|
||||||
args[3] = video_file;
|
args[3] = script_file_full;
|
||||||
args[4] = type;
|
args[4] = video_file;
|
||||||
args[5] = NULL;
|
args[5] = type;
|
||||||
|
args[6] = NULL;
|
||||||
} else {
|
} else {
|
||||||
args[0] = script_file_full;
|
args[0] = script_file_full;
|
||||||
args[1] = video_file;
|
args[1] = video_file;
|
||||||
|
|||||||
Reference in New Issue
Block a user