mailnag
mailnag copied to clipboard
Mailnag does not open default e-mail reader
Hi,
when i click on desktop notification mailnag does not open default email reader (Evolution, in my case), but restarting itself instead.
INFO (2016-11-30 08:51:34): Shutting down... INFO (2016-11-30 08:51:34): Idler closed INFO (2016-11-30 08:51:34): Plugins disabled successfully.
Archlinux, Gnome Shell 3.22, mailnag 1.2.1 & 1.3
How to fix this?
Me too. It used to work on Fedora 24, but I upgraded to Fedora 25 and now it doesn't work. Unfortunately, I don't know which version I used before, but now it's 1.2.1
$ mailnag
Shutting down existing Mailnag process...OK
INFO (2017-07-14 15:17:05): Successfully enabled plugin 'dbusplugin'.
INFO (2017-07-14 15:17:05): Successfully enabled plugin 'libnotifyplugin'.
INFO (2017-07-14 15:17:05): Successfully enabled plugin 'soundplugin'.
INFO (2017-07-14 15:17:05): Checking 1 email account(s).
(I click on the notification...)
INFO (2017-07-14 15:17:11): Shutting down...
INFO (2017-07-14 15:17:11): Idler closed
INFO (2017-07-14 15:17:11): Plugins disabled successfully.
You can always use app passwords that you create at https://myaccount.google.com/apppasswords It generates a 16 character password, which can be only used for one thing, and it just works.
I have the same issue on my machine:
Ubuntu 20.04, Gnome 3.36.3, Mailnag 2.0.0
After some digging I found out that the libnotify plugin checks if GNOME is used by looking into the GDMSESSION
env variable. These are the corresponding lines: https://github.com/pulb/mailnag/blob/d47c238e4605ec5758911cf5d13f455c6bd0bc9d/Mailnag/plugins/libnotifyplugin.py#L67-L68
In order for Mailnag to work completely this must be set as 'gnome'. Though on most Ubuntu machines like mine this is set as 'ubuntu' (guessing something similar for mentioned ArchLinux & Fedora).
I think the env check could be enhanced in a way that it becomes more inclusive (e.g. another var XDG_CURRENT_DESKTOP=ubuntu:GNOME
has the needed info for GNOME, in Ubuntu and Archlinux also).
You think a Pull Request would make sense here?
Cheers and thanks for this awesome project!
Many thanks for your report. And yes, I'm happy for every pull request! :)
Best regards Patrick
Am 30. Oktober 2020 11:31:12 MEZ schrieb Denis Anuschewski [email protected]:
I have the same issue on my machine:
Ubuntu 20.04, Gnome 3.36.3, Mailnag 2.0.0
After some digging I found out that the libnotify plugin checks if GNOME is used by looking into the
GDMSESSION
env variable. These are the corresponding lines: https://github.com/pulb/mailnag/blob/d47c238e4605ec5758911cf5d13f455c6bd0bc9d/Mailnag/plugins/libnotifyplugin.py#L67-L68In order for Mailnag to work completely this must be set as 'gnome'. Though on most Ubuntu machines like mine this is set as 'ubuntu' (guessing something similar for mentioned ArchLinux & Fedora).
I think the env check could be enhanced in a way that it becomes more inclusive (e.g. another var
XDG_CURRENT_DESKTOP=ubuntu:GNOME
has the needed info for GNOME, in Ubuntu and Archlinux also).You think a Pull Request would make sense here?
Cheers and thanks for this awesome project!
-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/pulb/mailnag/issues/146#issuecomment-719473681
Hi @pulb
no problem. I wrote a small PR which adds XDG_CURRENT_DESKTOP
to the GNOME check and looks for the string's ending instead of an exact match ("ubuntu:GNOME" etc.).
Hope this solves the problem for all or at least most users. Could you maybe check @piotrzientarski and @rdlmda? Especially by checking your env.
Arch:
$ printenv | grep XDG_CURRENT
XDG_CURRENT_DESKTOP=GNOME
Arch:
$ printenv | grep XDG_CURRENT XDG_CURRENT_DESKTOP=GNOME
Perfect! So the fix would also work for you.