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

Work around Debian's patched libnotify 0.7.6 #80

Closed
wants to merge 1 commit into from

Conversation

Stebalien
Copy link
Contributor

Don't rely on the version number. Instead, check the number of arguments
directly. Does this work?

Re: #69 (comment)

@TingPing
Copy link
Member

The Ubuntu guy said len(Notify.Notification.add_action.get_arguments()) returns 5 on his machine

@soreau
Copy link

soreau commented Feb 26, 2014

The Ubuntu guy said len(Notify.Notification.add_action.get_arguments()) returns 5 on his machine

Yes, I tried from python2 and 3 command line and both return 5, however I still receive:

TypeError: add_action() takes exactly 6 arguments (5 given)

Don't rely on the version number. Try calling `add_action` with the new
API and fallback on the old.
@Stebalien
Copy link
Contributor Author

How about now.

@soreau
Copy link

soreau commented Feb 27, 2014

How about now.

Yes, this works here. The notifications work and there is no error output.

@TingPing TingPing closed this in d5e5e0a Feb 27, 2014
@Stebalien Stebalien deleted the fix-notify-arguments branch February 27, 2014 18:06
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.

None yet

3 participants