OSDN Git Service

disable resolution dialog when guestadditions are installed
authorpaperbenni <paperbenni@gmail.com>
Mon, 6 Jul 2020 18:41:50 +0000 (20:41 +0200)
committerpaperbenni <paperbenni@gmail.com>
Mon, 6 Jul 2020 18:41:50 +0000 (20:41 +0200)
autostart.sh
monitor.sh

index bbbef78..a951de8 100755 (executable)
@@ -144,13 +144,16 @@ Disable compositing for this VM?" | imenu -C; then
                        iconf -i qxl 1
                fi
        fi
-       if echo "virtual machine detected.
+
+       if ! [ -e /opt/instantos/guestadditions ]; then
+               if echo "virtual machine detected.
 Would you like to switch to a 1080p resolution?" | imenu -C; then
-               echo "applying virtual machine workaround"
-               /opt/instantos/menus/dm/tv.sh
-       else
-               if ! imenu -c "ask again next session"; then
-                       iconf -i novmfix 1
+                       echo "applying virtual machine workaround"
+                       /opt/instantos/menus/dm/tv.sh
+               else
+                       if ! imenu -c "ask again next session"; then
+                               iconf -i novmfix 1
+                       fi
                fi
        fi
 fi
index 96de30a..18922fc 100755 (executable)
@@ -50,9 +50,12 @@ else
 fi
 
 # rebuild wallpaper after resolution change
+
 changetrigger() {
+    rm ~/instantos/wallpapers/overlay.*
+    rm -rf ~/instantos/wallpapers/default
+
     if iconf -i setwallpaper; then
-        rm -rf ~/instantos/wallpapers
         instantwallpaper resolution
     fi
 }