aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meson.build2
-rw-r--r--project.conf2
-rw-r--r--src/main.cpp5
3 files changed, 6 insertions, 3 deletions
diff --git a/meson.build b/meson.build
index 0c5cc64..1688c4c 100644
--- a/meson.build
+++ b/meson.build
@@ -1,4 +1,4 @@
-project('gpu-screen-recorder-gtk', ['c', 'cpp'], version : '5.7.2', default_options : ['warning_level=2'])
+project('gpu-screen-recorder-gtk', ['c', 'cpp'], version : '5.7.3', default_options : ['warning_level=2'])
add_project_arguments('-Wshadow', language : ['c', 'cpp'])
if get_option('buildtype') == 'debug'
diff --git a/project.conf b/project.conf
index 9a250d7..647c88e 100644
--- a/project.conf
+++ b/project.conf
@@ -1,7 +1,7 @@
[package]
name = "gpu-screen-recorder-gtk"
type = "executable"
-version = "5.7.2"
+version = "5.7.3"
platforms = ["posix"]
[config]
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"