diff options
author | dec05eba <dec05eba@protonmail.com> | 2025-06-08 13:24:57 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2025-06-08 13:25:43 +0200 |
commit | e493a390b119e8a44f60c3ae93ed92cf227313f3 (patch) | |
tree | 907ea16610a0d998c80fdf164b7b8c91d4af1c14 /src/main.cpp | |
parent | ace1cfe576c56451b497e682ac56eb3a0a133eb6 (diff) |
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 369eb93..0bf770a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1401,6 +1401,9 @@ static bool is_monitor_capture_drm() { } static bool show_pkexec_flatpak_error_if_needed() { + if(!flatpak) + return false; + const std::string window_str = record_area_selection_menu_get_active_id(); if(is_monitor_capture_drm() && window_str != "window" && window_str != "focused" && window_str != "portal") { if(!is_pkexec_installed()) { @@ -1411,7 +1414,7 @@ static bool show_pkexec_flatpak_error_if_needed() { return true; } - if(flatpak && !flatpak_is_installed_as_system()) { + if(!flatpak_is_installed_as_system()) { if(gsr_info.system_info.display_server == DisplayServer::WAYLAND) { GtkWidget *dialog = gtk_message_dialog_new(GTK_WINDOW(window), GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, "GPU Screen Recorder needs to be installed system-wide to record your monitor on Wayland when not using the portal option. You can run this command to install GPU Screen recorder system-wide:\n" |