We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 147b5da commit c67f66eCopy full SHA for c67f66e
1 file changed
save-restore-opened-apps
@@ -1,6 +1,4 @@
1
#!/usr/bin/env bash
2
-# Save the current opened GUI applications.
3
-# And re-open or restore them
4
5
MSG_SAVE="save running apps"
6
MSG_REOPEN="reopen the previous running apps"
@@ -42,7 +40,7 @@ save()
42
40
done > "$LOCATION_OF_CURRENT_RUNNING_APPS"
43
41
}
44
45
-restore()
+reopen()
46
{
47
SAVEIFS=$IFS
48
IFS=$(echo -en "\n\b")
@@ -88,11 +86,11 @@ check_user
88
86
if [ x"$1" = x"-s" -o x"$1" = x"--save" ]; then
89
87
confirm "$MSG_SAVE"
90
save
91
-elif [ x"$1" = x"-r" -o x"$1" = x"--restore" ]; then
+elif [ x"$1" = x"-r" -o x"$1" = x"--reopen" ]; then
92
confirm "$MSG_REOPEN"
93
- restore
+ reopen
94
elif [ x"$1" = x"-l" -o x"$1" = x"--list" ]; then
95
list
96
else
97
- echo "-s/--save or -r/--restore or -l/--list"
+ echo "-s/--save or -r/--reopen or -l/--list"
98
fi
0 commit comments