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

FileNotFoundError: ~/.kde/share/config/emaildefaults #78

Open
sevku opened this issue Apr 18, 2020 · 9 comments
Open

FileNotFoundError: ~/.kde/share/config/emaildefaults #78

sevku opened this issue Apr 18, 2020 · 9 comments

Comments

@sevku
Copy link
Contributor

sevku commented Apr 18, 2020

$ gnome-gmail
Traceback (most recent call last):
  File "/usr/share/gnome-gmail/gnomegmail.py", line 1009, in <module>
    main()
  File "/usr/share/gnome-gmail/gnomegmail.py", line 969, in main
    if not is_default_mailer() \
  File "/usr/share/gnome-gmail/gnomegmail.py", line 133, in is_default_mailer
    with open(cfgpath, 'r') as cfp:
FileNotFoundError: [Errno 2] No such file or directory: '/home/user/.kde/share/config/emaildefaults'
@davesteele
Copy link
Owner

KDE support is broken. See #30.

@sevku
Copy link
Contributor Author

sevku commented Apr 18, 2020

KDE support is broken. See #30.

Why exactly has there been no progress on this?

What would have to be done?

@davesteele
Copy link
Owner

There has been no progress because no one has worked on it.

If the goal is to have it work with KDE, than it needs to be debugged by someone running that environment. This has not been a significant goal for me.

@sevku
Copy link
Contributor Author

sevku commented Apr 19, 2020

I've actually fixed that bug I think. But I'm running into another one which I'm clueless about now:

$ python gnomegmail.py 
gnomegmail.py:607: DeprecationWarning: The SafeConfigParser class has been renamed to ConfigParser in Python 3.2. This alias will be removed in future versions. Use ConfigParser directly instead.
  SafeConfigParser.__init__(self, *args, **kwargs)
Traceback (most recent call last):
  File "/home/user/tmp/scop-gnome-gmail/venv/lib/python3.7/site-packages/gi/overrides/Gtk.py", line 110, in _builder_connect_callback
    handler, args = _extract_handler_and_args(obj_or_map, handler_name)
  File "/home/user/tmp/scop-gnome-gmail/venv/lib/python3.7/site-packages/gi/overrides/Gtk.py", line 90, in _extract_handler_and_args
    raise AttributeError('Handler %s not found' % handler_name)
AttributeError: Handler onUserSelClose not found
Traceback (most recent call last):
  File "/home/user/tmp/scop-gnome-gmail/venv/lib/python3.7/site-packages/gi/overrides/Gtk.py", line 110, in _builder_connect_callback
    handler, args = _extract_handler_and_args(obj_or_map, handler_name)
  File "/home/user/tmp/scop-gnome-gmail/venv/lib/python3.7/site-packages/gi/overrides/Gtk.py", line 90, in _extract_handler_and_args
    raise AttributeError('Handler %s not found' % handler_name)
AttributeError: Handler onDestroy not found
Traceback (most recent call last):
  File "/home/user/tmp/scop-gnome-gmail/venv/lib/python3.7/site-packages/gi/overrides/Gtk.py", line 110, in _builder_connect_callback
    handler, args = _extract_handler_and_args(obj_or_map, handler_name)
  File "/home/user/tmp/scop-gnome-gmail/venv/lib/python3.7/site-packages/gi/overrides/Gtk.py", line 90, in _extract_handler_and_args
    raise AttributeError('Handler %s not found' % handler_name)
AttributeError: Handler onDestroy not found
Traceback (most recent call last):
  File "/home/user/tmp/scop-gnome-gmail/venv/lib/python3.7/site-packages/gi/overrides/Gtk.py", line 110, in _builder_connect_callback
    handler, args = _extract_handler_and_args(obj_or_map, handler_name)
  File "/home/user/tmp/scop-gnome-gmail/venv/lib/python3.7/site-packages/gi/overrides/Gtk.py", line 90, in _extract_handler_and_args
    raise AttributeError('Handler %s not found' % handler_name)
AttributeError: Handler onOkClicked not found

@davesteele
Copy link
Owner

It appears to be from this. Why, I don't know.

@sevku
Copy link
Contributor Author

sevku commented Apr 19, 2020

Does it have to be run with Python 2.7? Or can it be run with python 3.x?

@davesteele
Copy link
Owner

It was first developed with 2.7, but I make no guarantees that it is still compatible. It is EOL.

@sevku sevku mentioned this issue Apr 22, 2020
@sevku
Copy link
Contributor Author

sevku commented Apr 26, 2020

@davesteele I've been looking into this a little more and I've got some questions and issues

The questtion is, how should it behave when entering an email?
In my case, it literally just opens a browser with gmail.com, entering an email in the popup has no effect, it loads whatever account is currently logged in in that browser.

The other thing is that setting default email application doesn't yet work on KDE, but I will fix that if I get to it, just wanted to note that down here.

@davesteele
Copy link
Owner

That could be a bug. If there is an email being generated, the URL given by the GMail API should specify the correct user. But, in the case where you are just opening up the browser, that logic is not in place. Not something I test extensively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants