Skip to content

Commit

Permalink
feat:[Vanilla-OS#108] add rescue shell to blackbox
Browse files Browse the repository at this point in the history
- add shell detect script
- add rescue action to blackbox desktop
- change blackbox custom override to shell detect script
  • Loading branch information
jardon committed Nov 1, 2024
1 parent f082c2e commit ed8ca81
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions includes.container/usr/bin/vanilla-shell-detect
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
if [ $# -eq 0 ]
then
exec /usr/bin/vso-os-shell
else
exec "${SHELL-bash}" "$@"
fi
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[com.raggesilver.BlackBox]
use-custom-command = true
custom-shell-command = "/usr/bin/vso-os-shell"
custom-shell-command = "/usr/bin/vanilla-shell-detect"
5 changes: 5 additions & 0 deletions recipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ stages:
- sed 's/Session=/Session=firstsetup/g' -i /usr/share/accountsservice/user-templates/administrator
- sed 's/Session=/Session=firstsetup/g' -i /usr/share/accountsservice/user-templates/standard

- name: blackbox-rescue
type: shell
commands:
- echo "\nActions=rescue;\n[Desktop Action rescue]\nName=Rescue Mode\nExec=blackbox-terminal -c /bin/bash\nIcon=com.raggesilver.BlackBox" >> /usr/share/applications/com.raggesilver.BlackBox.desktop

- name: apx-vso-pico-shutdown-service
type: shell
commands:
Expand Down

0 comments on commit ed8ca81

Please sign in to comment.