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): lect> Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/gnu/build/linux-container.scm
AgeCommit message (Expand)Author
2023-01-30linux-container: 'container-excursion' forks to join the PID namespace....Ludovic Courtès
2023-01-30container: Correctly report exit status....Ludovic Courtès
2022-09-24linux-container: Mark socket pair as SOCK_CLOEXEC....Ludovic Courtès
2022-09-20linux-container: 'container-excursion*' marks its FDs as FD_CLOEXEC....Ludovic Courtès
2022-05-01linux-container: Add #:child-is-pid1? parameter to 'call-with-container'....Ludovic Courtès
2022-05-01linux-container: Ensure signal-handling asyncs get a chance to run....Ludovic Courtès
2022-05-01linux-container: 'call-with-container' relays SIGTERM and SIGINT....Ludovic Courtès
2022-01-05linux-container: Handle CLONE_NEWCGROUP and use it by default....Ryan Sundberg
2020-12-06Revert "linux-container: Correct test for unprivileged user namespace support."...Marius Bakke
2020-12-03linux-container: Correct test for unprivileged user namespace support....Paul Garlick