dot

packages and services management
Log | Files | Refs | README

commit d6cbf8a0e766800dd0f75dcf0a3859998dcb91f7
parent fd5542dfb771ca63db60a30e6aee94c4ef13a6eb
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sat, 14 Apr 2018 09:39:52 +0200

xdg-open: try to attach a session with this name if nothing matches

Diffstat:
Mbin/pstree | 5+++--
Mbin/xdg-open | 1+
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/bin/pstree b/bin/pstree @@ -37,9 +37,10 @@ BEGIN { } } -# Build a relational database in entries from the output of ps: The +# Build a relational database in <entries> from the output of ps: The # parent pid (ppid) -> pid pairs are used to accumulate a list of child -# pid (serialized into a csv: ",234,532,454"). +# pid (serialized into a csv: ",234,532,454") later used for building +# the tree. # # For each pid, "info" and "comm" are saved as well. diff --git a/bin/xdg-open b/bin/xdg-open @@ -221,5 +221,6 @@ case "$1" in (*) [ -f "$1" ] && exec xdg-abduco "$1" $EDITOR "$1" [ -d "$1" ] && cd "$1" && exec xdg-abduco "$PWD" "$SHELL" + exec xdg-abduco "$1" false ;; esac