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 d458992 commit 9f8f17aCopy full SHA for 9f8f17a
scripts/session/session-bios.sh
@@ -13,7 +13,13 @@ is_gnome() {
13
dbus-send --print-reply --dest=org.gnome.Shell /org/gnome/Shell org.freedesktop.DBus.Properties.Get string:org.gnome.Shell string:ShellVersion >/dev/null 2>&1
14
}
15
16
-if is_gnome; then
+is_cosmic() {
17
+ command -v cosmic-osd >/dev/null && [ "$XDG_SESSION_DESKTOP" = "COSMIC" ]
18
+}
19
+
20
+if is_cosmic; then
21
+ cosmic-osd enter-bios
22
+elif is_gnome; then
23
systemctl reboot --firmware-setup
24
elif command -v systemctl >/dev/null; then
25
0 commit comments