Skip to content

Commit

Permalink
feat: add reset-vso file
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkobrombin committed Jul 11, 2024
1 parent 0efcd59 commit fe3f4ba
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
19 changes: 19 additions & 0 deletions includes.container/usr/bin/reset.vso
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

if [ "$1" == "--tty" ]; then
echo "Are you sure you want to reset the VSO? This will remove all your installed software in the subsystem. [y/N]"
read -r answer
if [ "$answer" == "y" ]; then
podman rm -f apx-vso-pico
blackbox-terminal
fi
else
adwdialog --title "Reset VSO?" \
--description "Are you sure you want to reset the VSO? This will remove all your installed software in the subsystem." \
--type "question" \
--icon "org.vanillaos.VSO"
if [ $? -eq 0 ]; then
podman rm -f apx-vso-pico
blackbox-terminal
fi
fi
4 changes: 4 additions & 0 deletions modules/00-vanilla-system-operator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ modules:
- chmod +x /usr/bin/vso-os-shell
- echo "/usr/bin/vso-os-shell" >> /etc/shells
- sed -i 's/^\(SHELL=\).*/\1\/usr\/bin\/vso-os-shell/' /etc/default/useradd
- name: reset-vso
type: shell
commands:
- chmod +x /usr/bin/reset-vso
- name: vso-gnome-ext
type: shell
source:
Expand Down

0 comments on commit fe3f4ba

Please sign in to comment.