Remotedesktop - Add two more options (#1654)

This commit is contained in:
szaimen 2020-11-05 12:31:30 +01:00 committed by GitHub
parent f6dc72ca1d
commit bf3985eacd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 2 deletions

View File

@ -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

View File

@ -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
;;&