From 4eb6a925ac49c1a1e10dec71dde2ec2e5dcda3af Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Fri, 19 May 2023 17:59:03 +0600 Subject: [PATCH] Removed pkexec call from commands --- source/ubl-settings-video.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/source/ubl-settings-video.h b/source/ubl-settings-video.h index c5b0019..19d458f 100644 --- a/source/ubl-settings-video.h +++ b/source/ubl-settings-video.h @@ -53,29 +53,29 @@ #define load_drivers_global_command "/usr/bin/ubconfig --default --source global get video FAILSAFENVIDIA FAILSAFEATI OPTIRUN PRIMUSRUN VGADRV_AUTO " -#define save_drivers_global_command "pkexec /usr/bin/ubconfig --target global --noexecute set video " +#define save_drivers_global_command "/usr/bin/ubconfig --target global --noexecute set video " -#define save_drivers_global_local_command "pkexec /usr/bin/ubconfig set video " +#define save_drivers_global_local_command "/usr/bin/ubconfig set video " #define load_drivers_local_command "/usr/bin/ubconfig --default --source system get video FAILSAFENVIDIA FAILSAFEATI OPTIRUN PRIMUSRUN VGADRV_AUTO " -#define save_drivers_local_command "pkexec /usr/bin/ubconfig --target system set video " +#define save_drivers_local_command "/usr/bin/ubconfig --target system set video " #define remove_drivers_global_command "/usr/bin/ubconfig --target system remove video " #define remove_drivers_local_command "/usr/bin/ubconfig --target system remove video " -#define install_proprietary_command "pkexec pacman --quiet --needed --noconfirm -Sy " +#define install_proprietary_command "pacman --quiet --needed --noconfirm -Sy " -#define delete_proprietary_command "pkexec pacman -R --noconfirm " +#define delete_proprietary_command "pacman -R --noconfirm " #define get_info_proprietary_command "pamac-manager --details=" #define get_version_proprietary_command "grep \"VERSION_ID=\" /etc/os-release | cut -d= -f2" -#define get_proprietary_drivers_command "pkexec pacman -Ssy ubm-nvidia-.* |grep -oE \"[a-zA-Z-]{1,}-nvidia-[a-zA-Z0-9-]{1,}\"" -#define get_proprietary_drivers_local_command "pkexec pacman -Qq |grep -E \"ubm-nvidia-\"" -#define get_proprietary_installed_command yon_char_unite("pkexec pacman -Ss nvidia-.* |grep -E ",INSTALLED_LOW_LABEL," |grep -oE \"ubm-nvidia-[0-9a-zA-Z]{1,}|nvidia-[0-9]{1,4}xx-dkms\"",NULL) +#define get_proprietary_drivers_command " pacman -Ssy ubm-nvidia-.* |grep -oE \"[a-zA-Z-]{1,}-nvidia-[a-zA-Z0-9-]{1,}\"" +#define get_proprietary_drivers_local_command " pacman -Qq |grep -E \"ubm-nvidia-\"" +#define get_proprietary_installed_command yon_char_unite(" pacman -Ss nvidia-.* |grep -E ",INSTALLED_LOW_LABEL," |grep -oE \"ubm-nvidia-[0-9a-zA-Z]{1,}|nvidia-[0-9]{1,4}xx-dkms\"",NULL) // #define get_proprietary_drivers_command "LC_ALL=C pacman -Ss ubm-nvidia-.* |grep -oE \"[a-zA-Z-]{1,}nvidia-[a-zA-Z0-9-]{1,}|installed\"|sed ':a;N;$!ba;s/\\ninstalled/ installed/g'" #define get_adapter_info "lshw -c display -quiet |grep -oE \"vendor:[0-9a-zA-Z ]{1,}|description:[0-9a-zA-Z ]{1,}|product:[]0-9a-zA-Z [-]{1,}\"|sed 's/: /=/g';lspci | grep -E ' VGA | Display ' | cut -d\" \" -f 1 | xargs -i lspci -v -s {} |grep -oE \"Kernel[:a-zA-Z0-9: ,_]{1,}\"|sed 's/: /=/g'|sed 's/ /-/g'"