mirror of
https://github.com/Zerodya/hyprfreeze.git
synced 2024-11-10 01:18:49 +01:00
fix: move session info debug output to detectEnvironment()
This commit is contained in:
parent
c894c76305
commit
f0328d81b2
1 changed files with 2 additions and 5 deletions
|
@ -135,14 +135,11 @@ function detectEnvironment() {
|
|||
debugPrint "Could not determine desktop environment via \`loginctl\`, and `$XDG_DESKTOP_SESSION` is not set. Assuming Hyprland."
|
||||
DESKTOP="hyprland"
|
||||
fi
|
||||
|
||||
debugPrint "Desktop: $DESKTOP"
|
||||
}
|
||||
|
||||
function printInfo() {
|
||||
debugPrint "Printing environment info..."
|
||||
echo -e "$(tput bold)Session type:$(tput sgr0) $SESSION"
|
||||
echo -e "$(tput bold)Desktop:$(tput sgr0) $DESKTOP"
|
||||
echo ""
|
||||
|
||||
debugPrint "Printing process info..."
|
||||
echo -e "$(tput bold)Process tree:$(tput sgr0)"
|
||||
ps -p "$PID" 2>/dev/null && pstree -p "$PID"
|
||||
|
|
Loading…
Reference in a new issue