mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-02-26 20:46:24 +00:00
Fixes #8
This commit is contained in:
parent
ac3d1f6c6b
commit
572062d98b
4
fetch.sh
4
fetch.sh
@ -263,7 +263,9 @@ getshell () {
|
|||||||
|
|
||||||
# Get window manager
|
# Get window manager
|
||||||
getwindowmanager () {
|
getwindowmanager () {
|
||||||
if [ -e "$HOME/.xinitrc" ]; then
|
if [ ! -z "${XDG_CURRENT_DESKTOP}" ]; then
|
||||||
|
windowmanager="${XDG_CURRENT_DESKTOP}"
|
||||||
|
elif [ -e "$HOME/.xinitrc" ]; then
|
||||||
xinitrc=$(awk '/^[^#]*exec/ {print $2}' "${HOME}/.xinitrc")
|
xinitrc=$(awk '/^[^#]*exec/ {print $2}' "${HOME}/.xinitrc")
|
||||||
windowmanager="${xinitrc/-session/}"
|
windowmanager="${xinitrc/-session/}"
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user