Commit 4d8bebec authored by Dylan Araps's avatar Dylan Araps

Info: Log if function was used before

parent 9b7e84a5
...@@ -531,6 +531,9 @@ get_shell() { ...@@ -531,6 +531,9 @@ get_shell() {
} }
get_de() { get_de() {
# If function was run, stop here.
(( "$de_run" == 1 )) && return
case "$os" in case "$os" in
"Mac OS X") de="Aqua" ;; "Mac OS X") de="Aqua" ;;
"Windows") "Windows")
...@@ -582,6 +585,7 @@ get_de() { ...@@ -582,6 +585,7 @@ get_de() {
} }
get_wm() { get_wm() {
# If function was run, stop here.
(( "$wm_run" == 1 )) && return (( "$wm_run" == 1 )) && return
if [[ -n "$DISPLAY" && "$os" != "Mac OS X" ]]; then if [[ -n "$DISPLAY" && "$os" != "Mac OS X" ]]; then
...@@ -1487,6 +1491,9 @@ get_font() { ...@@ -1487,6 +1491,9 @@ get_font() {
} }
get_term() { get_term() {
# If function was run, stop here.
(( "$term_run" == 1 )) && return
# Check $PPID for terminal emulator. # Check $PPID for terminal emulator.
case "$os" in case "$os" in
"Mac OS X") "Mac OS X")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment