From bf3985eacd29f0cb7e253ba5bcff35e3cacb7adf Mon Sep 17 00:00:00 2001 From: szaimen Date: Thu, 5 Nov 2020 12:31:30 +0100 Subject: [PATCH] Remotedesktop - Add two more options (#1654) --- apps/midnight-commander.sh | 3 ++- not-supported/remotedesktop.sh | 26 +++++++++++++++++++++++++- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/apps/midnight-commander.sh b/apps/midnight-commander.sh index edffe529..88362fc8 100644 --- a/apps/midnight-commander.sh +++ b/apps/midnight-commander.sh @@ -67,13 +67,14 @@ do MC_PATH=/home/$user/.config/mc fi sudo -u "$user" mkdir -p "$MC_PATH" - sudo -u "$user" cat << MC_INI > "$MC_PATH/ini" + cat << MC_INI > "$MC_PATH/ini" [Colors] base_color=linux:normal=white,black:marked=yellow,black:input=,green:menu=black:menusel=white:\ menuhot=red,:menuhotsel=black,red:dfocus=white,black:dhotnormal=white,black:\ dhotfocus=white,black:executable=,black:directory=white,black:link=white,black:\ device=white,black:special=white,black:core=,black:stalelink=red,black:editnormal=white,black MC_INI + chown "$user":"$user" "$MC_PATH/ini" done # Inform the user diff --git a/not-supported/remotedesktop.sh b/not-supported/remotedesktop.sh index f10b835a..343b7496 100644 --- a/not-supported/remotedesktop.sh +++ b/not-supported/remotedesktop.sh @@ -97,6 +97,22 @@ You should be able to connect via an RDP client with your server \ using the credentials of $UNIXUSER and the server ip-address $ADDRESS" fi +# Evince +if is_this_installed evince +then + EVINCE_SWTICH=OFF +else + EVINCE_SWTICH=ON +fi + +# Eye of Gnome +if is_this_installed eog +then + EOG_SWITCH=OFF +else + EOG_SWITCH=ON +fi + # Firefox if is_this_installed firefox then @@ -152,6 +168,8 @@ It is smart and has selected only options that are not yet installed. Choose which ones you want to install. If you select apps that are already installed you will have the choice to uninstall them. $CHECKLIST_GUIDE" "$WT_HEIGHT" "$WT_WIDTH" 4 \ +"Evince" "(PDF Viewer)" "$EVINCE_SWTICH" \ +"Eye of Gnome" "(Image Viewer)" "$EOG_SWITCH" \ "Firefox" "(Internet Browser)" "$FIREFOX_SWITCH" \ "Gedit" "(Text Editor)" "$GEDIT_SWITCH" \ "MakeMKV" "(Rip DVDs and Blu-rays)" "$MAKEMKV_SWITCH" \ @@ -187,7 +205,7 @@ case "$choice" in as well as the gnome desktop." "$SUBTITLE" if yesno_box_no "Do you want to do this?" "$SUBTITLE" then - APPS=(firefox gedit makemkv-oss makemkv-bin nautilus sound-juicer vlc \ + APPS=(evince eog firefox gedit makemkv-oss makemkv-bin nautilus sound-juicer vlc \ gnome-shell-extension-dash-to-panel gnome-session xrdp) for app in "${APPS[@]}" do @@ -207,6 +225,12 @@ gnome-shell-extension-dash-to-panel gnome-session xrdp) exit fi ;;& + *"Evince"*) + install_remove_packet evince Evince + ;;& + *"Eye of Gnome"*) + install_remove_packet eog "Eye of Gnome" + ;;& *"Firefox"*) install_remove_packet firefox Firefox ;;&