diff options
author | Yves Fischer <yvesf@cern.ch> | 2016-02-01 09:09:31 +0100 |
---|---|---|
committer | Yves Fischer <yvesf@cern.ch> | 2016-02-01 09:09:43 +0100 |
commit | 3cbe8700c8c6cb1ac41b506681234f995ca979ba (patch) | |
tree | 01b6f4e232e23ff9cf5379137a472796784d1abe /packages/cern-scripts/resources/bin/dmenu-software.sh | |
parent | 4de2d5afc7dfdb0409d2ac9359bbe5bac58e2edc (diff) | |
download | debian-packages-3cbe8700c8c6cb1ac41b506681234f995ca979ba.tar.gz debian-packages-3cbe8700c8c6cb1ac41b506681234f995ca979ba.zip |
cern-scripts: restructure source directory
Diffstat (limited to 'packages/cern-scripts/resources/bin/dmenu-software.sh')
-rwxr-xr-x | packages/cern-scripts/resources/bin/dmenu-software.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/cern-scripts/resources/bin/dmenu-software.sh b/packages/cern-scripts/resources/bin/dmenu-software.sh new file mode 100755 index 0000000..bca5b54 --- /dev/null +++ b/packages/cern-scripts/resources/bin/dmenu-software.sh @@ -0,0 +1,13 @@ +#!/bin/bash -l + +sysenv='System native environment' + +env=`(echo "$sysenv"; plain_list_envs) | dmenu` + +test -f "$HOME/.cache/dmenu_run" && rm -f "$HOME/.cache/dmenu_run" + +if [ "$env" == "$sysenv" ]; then + dmenu_run +else + bash -l -c "activate $env; dmenu_run" +fi |