From 9ace94aa2a9938ffc98df7129e424d9eb478b42f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 16 Feb 2024 20:12:04 +0100 Subject: Update appdata --- com.dec05eba.gpu_screen_recorder.appdata.xml | 5 +++++ src/main.cpp | 13 ++----------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/com.dec05eba.gpu_screen_recorder.appdata.xml b/com.dec05eba.gpu_screen_recorder.appdata.xml index af544cd..3396dee 100644 --- a/com.dec05eba.gpu_screen_recorder.appdata.xml +++ b/com.dec05eba.gpu_screen_recorder.appdata.xml @@ -69,6 +69,11 @@ + + +

Fix minor permissions issue

+
+

Better error message for missing h264/hevc, ignore user nvidia vaapi setting

diff --git a/src/main.cpp b/src/main.cpp index 22ba789..47b20ee 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2281,19 +2281,10 @@ 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(wayland) { - label += ", requires root access"; - } else if(gpu_inf.vendor != GPU_VENDOR_NVIDIA) { - label += ", requires root access"; - } label += ")"; // Leak on purpose, what are you gonna do? stab me? char *id = (char*)malloc(monitor->name_len + 1); - if(!id) { - fprintf(stderr, "Failed to allocate memory\n"); - abort(); - } memcpy(id, monitor->name, monitor->name_len); id[monitor->name_len] = '\0'; @@ -3134,7 +3125,7 @@ static void load_config(const gpu_info &gpu_inf) { "you are using the flatpak version of GPU Screen Recorder then try installing mesa-extra freedesktop runtime by running this command:\n" "flatpak install --system org.freedesktop.Platform.GL.default//23.08-extra\n" "and then restart GPU Screen Recorder. If that doesn't work then you may have to install another mesa package for your distro.\n" - "If you are using a distro such as manjaro which disables hardware accelerated video encoding then you can also try the flatpak version of GPU Screen Recorder instead which doesn't have this issue"); + "If you are using a distro such as manjaro which disables hardware accelerated video encoding then you can also try the flatpak version of GPU Screen Recorder instead which doesn't have this issue."); gtk_dialog_run(GTK_DIALOG(dialog)); gtk_widget_destroy(dialog); config.main_config.codec = "av1"; @@ -3145,7 +3136,7 @@ static void load_config(const gpu_info &gpu_inf) { "you are using the flatpak version of GPU Screen Recorder then try installing mesa-extra freedesktop runtime by running this command:\n" "flatpak install --system org.freedesktop.Platform.GL.default//23.08-extra\n" "and then restart GPU Screen Recorder. If that doesn't work then you may have to install another mesa package for your distro.\n" - "If you are using a distro such as manjaro which disables hardware accelerated video encoding then you can also try the flatpak version of GPU Screen Recorder instead which doesn't have this issue"); + "If you are using a distro such as manjaro which disables hardware accelerated video encoding then you can also try the flatpak version of GPU Screen Recorder instead which doesn't have this issue."); gtk_dialog_run(GTK_DIALOG(dialog)); gtk_widget_destroy(dialog); g_application_quit(G_APPLICATION(select_window_userdata.app)); -- cgit v1.2.3