Fix check for dmenu (open file mode, dependency on which). See . --- quickswitch-i3-2.2/quickswitch.py 2016-09-18 19:59:10.257765542 +0200 +++ quickswitch-i3-2.2/quickswitch.py 2016-09-21 10:43:01.277577819 +0200 @@ -24,9 +24,10 @@ import argparse import subprocess -import os import re +from distutils.spawn import find_executable + try: import i3 except ImportError: @@ -37,11 +38,8 @@ def check_dmenu(): '''Check if dmenu is available.''' - devnull = open(os.devnull) - retcode = subprocess.call(["which", "dmenu"], - stdout=devnull, - stderr=devnull) - return True if retcode == 0 else False + executable = find_executable("dmenu") + return executable != None def dmenu(options, dmenu): 'submit' value='switch'/> Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/acl.scm
AgeCommit message (Expand)Author
2023-06-17gnu: Use target-hurd?, system-hurd? instead of hurd-target?, hurd-system?....* gnu/packages/hurd.scm (hurd-target?): Remove. (hurd-system?): Move to... * guix/utils.scm (system-hurd?): ...here. * gnu/packages/*: Update all users, removing (gnu packages hurd) include where now unused. Janneke Nieuwenhuizen
2021-12-13gnu: Simplify package inputs....This commit was obtained by running: ./pre-inst-env guix style without any additional argument. Ludovic Courtès
2021-10-18Merge remote-tracking branch 'signed/master' into core-updatesMathieu Othacehe
2021-10-18gnu: python-pylibacl: Add missing brace in description....Regression introduced in 133f780039e63798535e4f52a4d9f1810ea5b2ab. * gnu/packages/acl.scm (python-pylibacl)[description]: Add missing brace. Ludovic Courtès
2021-10-15gnu: python-pylibacl: Improve description....* gnu/packages/acl.scm (python-pylibacl)[synopsis]: Use @acronym{}. [description]: Turn into a full sentence, mark up, and edit for GNU. Tobias Geerinckx-Rice
2021-10-15gnu: python-pylibacl: Do not return #t from custom phases....* gnu/packages/acl.scm (python-pylibacl)[arguments]: Don't explicitly return #t from phases. Tobias Geerinckx-Rice
2021-07-23gnu: acl: Update to 2.3.1....* gnu/packages/acl.scm (acl): Update to 2.3.1. Marius Bakke