aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-07-18 06:20:24 +0200
committerdec05eba <dec05eba@protonmail.com>2023-07-18 06:20:24 +0200
commitd89f98349f9e60a123908caeb135314c289871f6 (patch)
tree1ea2891ca4c9f843548819ede9ac7c93a8efeb07 /src
parentcbd62bda0252c919556b733e3db94fa431dbc29a (diff)
Show error if using nvidia and flatpak is not installed systemwide
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index ddb2378..151fcee 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1079,7 +1079,7 @@ static HotkeyResult replace_grabbed_keys_depending_on_active_page() {
static bool show_pkexec_flatpak_error_if_needed() {
std::string window_str = gtk_combo_box_get_active_id(GTK_COMBO_BOX(record_area_selection_menu));
- if(gpu_inf.vendor != GPU_VENDOR_NVIDIA && window_str != "window" && window_str != "focused") {
+ if((wayland || gpu_inf.vendor != GPU_VENDOR_NVIDIA) && window_str != "window" && window_str != "focused") {
if(!is_pkexec_installed()) {
GtkWidget *dialog = gtk_message_dialog_new(GTK_WINDOW(window), GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK,
"pkexec needs to be installed to record a monitor with an AMD/Intel GPU. Please install and run polkit. Alternatively, record a single window which doesn't require root access.");
@@ -2043,7 +2043,9 @@ static GtkWidget* create_common_settings_page(GtkStack *stack, GtkApplication *a
label += std::to_string(monitor->size.x);
label += "x";
label += std::to_string(monitor->size.y);
- if(gpu_inf.vendor != GPU_VENDOR_NVIDIA)
+ if(wayland)
+ label += ", requires root access";
+ else if(gpu_inf.vendor != GPU_VENDOR_NVIDIA)
label += ", requires root access, may perform better";
label += ")";