Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Debian-specific checking for dmenu. #28

Closed
wants to merge 1 commit into from

Conversation

ivilata
Copy link

@ivilata ivilata commented Sep 19, 2016

The old check uses which, which is a Debian-specific tool. The new one
invokes dmenu -v straight away, so it doesn't depend on external tools.
It's compatible with both Python 3 and Python 2.

It also fixes opening /dev/null in write mode instead of read-only, plus
it uses with to ensure that the file is closed.

The old check uses ``which``, which is a Debian-specific tool.  The new one
invokes ``dmenu -v`` straight away, so it doesn't depend on external tools.
It's compatible with both Python 3 and Python 2.

It also fixes opening ``/dev/null`` in write mode instead of read-only, plus
it uses ``with`` to ensure that the file is closed.
@ivilata
Copy link
Author

ivilata commented Sep 20, 2016

It looks like which is not Debian-specific in the end, see this message. Sorry for the confusion.

I see there is already a simpler patch in #24, so I'm closing the issue.

@ivilata ivilata closed this Sep 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant