This commit is contained in:
ciricode committed 2021-08-15 10:35:20 +07:00
1 parent a1104f39c3
commit 7dc77ce37d
2 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -152,7 +152,7 @@ else
if (is_running "xfce4-session"); then
msg="XFCE: you may need to run 'xfce4-panel -r' after changing your theme to fix your panel opacity."
elif (is_running "gnome-session") && [[ "${GNOME_VERSION}" == "new" ]]; then
elif (is_my_distro "solus") && (is_running "gnome-session"); then
msg="GNOME: you may need to disable 'User Themes' extension to fix your dock."
elif (is_running "gnome-session") && [[ "${GNOME_VERSION}" == "old" ]]; then
msg="GNOME: you may need to disable 'User Themes' extension to fix your logout and authentication dialog."
+4
View File
@@ -171,6 +171,10 @@ has_snap_app() {
snap list "${1}" &> /dev/null || return 1
}
is_my_distro() {
[[ "$(cat '/etc/os-release' | awk -F '=' '/ID/{print $2}')" =~ "${1}" ]]
}
is_running() {
pgrep "$1" &> /dev/null
}