From 7ee783edebc941c6e87282c8662f16981b114524 Mon Sep 17 00:00:00 2001 From: stormdragon2976 Date: Wed, 7 Jun 2023 00:15:13 -0400 Subject: [PATCH] Add ability to have removable storage auto mounted if udiskie is detected. --- i38.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/i38.sh b/i38.sh index 8e12d8d..5dbe234 100755 --- a/i38.sh +++ b/i38.sh @@ -226,6 +226,11 @@ else fileBrowser="${programList/#-/}" fi fileBrowser="$(command -v $fileBrowser)" +# Auto mount removable media +udiskie=1 +if command -v udiskie &> /dev/null ; then + export udiskie=$(yesno "Would you like removable drives to automatically mount when plugged in?") +fi # Auto start with dex dex=1 if command -v dex &> /dev/null ; then @@ -462,6 +467,9 @@ fi if [[ $brlapi -eq 0 ]]; then echo 'exec --no-startup-id xbrlapi --quiet' fi +if [[ $udiskie -eq 0 ]]; then + echo 'exec --no-startup-id udiskie' +fi if [[ -x "/usr/lib/notification-daemon-1.0/notification-daemon" ]]; then echo 'exec_always --no-startup-id /usr/lib/notification-daemon-1.0/notification-daemon -r' fi