Unity-mail Doesn't start

Bug #1575771 reported by rcspam
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Unity Mail
Fix Released
Critical
Robert Tari

Bug Description

Fresh install 16.04, unity-mail from this ppa version 1.5.1.2~ubuntu16.04.1 (first launch)

$ unity-mail
Traceback (most recent call last):
  File "/usr/bin/unity-mail", line 12, in <module>
    UnityMail()
  File "/usr/share/unity-mail/UnityMail/application.py", line 149, in __init__
    self.init_keyring()
  File "/usr/share/unity-mail/UnityMail/application.py", line 437, in init_keyring
    self.open_dialog()
  File "/usr/share/unity-mail/UnityMail/application.py", line 469, in open_dialog
    self.accdlg = PreferencesDialog(self.parent)
AttributeError: 'UnityMail' object has no attribute 'parent'

Revision history for this message
Cip Man (cipman-p) wrote :

Do an upgrade to the latest version (current 1.5.2.7) and it won't crash no more on first start.
The problem with these late versions is that you won't be able to access the configuration no more (missing menu option) so make your first start count - set your config carefully. If you still need to edit your accounts, delete the unity password entry in seahorse > default - this will trigger a "first start". Another problem with the newer versions is that nothing happens when you click the icon on the launch pad (it should do whatever you set in ~/.config/unity-mail.cong Home field), all the other menu entries work.

I have reverted back to 1.4.4.478 and it's working as it use to be (except some minor warnings if you run it in console): https://launchpad.net/~robert-tari/+archive/ubuntu/main/+build/8972606/+files/unity-mail_1.4.4.478~ubuntu16.04.1_all.deb

Revision history for this message
rcspam (rcspam) wrote :

Thank you,
All is ok now with the latest version (1.5.2.7)...
I had copied the config file from my 14.04 install before start so it's ok.
rcspam

Changed in unity-mail:
status: New → Fix Released
assignee: nobody → Robert Tari (robert-tari)
importance: Undecided → Critical
Revision history for this message
Robert Tari (robert-tari) wrote :

Actually, you CAN configure Unity Mail at any time: the command is um-config (the best is to run it through ALT+F2). Another related thing: if the application detects any problems with your keyring or configuration file, it will automagically present the configuration dialog and reload itself.

The config action has been temporarily removed from the Launcher icon (and consequently the Messaging Menu) to avoid unpredictable behaviour on Ubuntu MATE, since it uses config differently. It will be rewritten and put back in a week or so.

The "Nothing happens" thing when you click the icon is no quite so: the icon is set to launch Unity Mail. If the app is already running, it will gracefully exit, preventing it from starting another instance.

In case you feel I should add a secondary function to the icon (i.e. when the app is running), please file a new bug, set the title to "Feature request: xxxxx", and briefly describe what you have in mind. I am always open to suggestions and more than happy to expand the code.

Revision history for this message
Cip Man (cipman-p) wrote :

I don't see a point on setting the icon to start unity-mail since this program is supposed to run at all times and automatically start. Yes, this is the way all the unity launcher icons work, but this app was/is different - it was a sort of indicator with the icon in the launch bar.

The way it used to work when you clicked the icon was to start whatever you set in the Home field in the config file (mine is set to Exec something - namely a mail handling program). I don't have the new version installed but I don't remember being able to click anything in the menu to make the 'Home' setting run. Including this option in the menu (or using an existing one) wouldn't be too appealing since you'd have to make four mouse actions (move, right click, move, left click) instead of two (or one keyboard shortcut) to do the simple action of open your mail handling software - which I do more than a dozen times a day. It's less likely someone would start unity-mail a dozen times a day :)

So I don't have a feature request, more likely a 'leave it as it was' request :) [minus whatever is needed for the app to work on all ubuntu flavors]. But I'm happy with the 1.4.4.478 version so no requests from me :)
Thanks.

Revision history for this message
rcspam (rcspam) wrote :

@robert-tari,
Thanks for the precision...
I used to use my own unity-mail.desktop file in ~/.local/share/applications since some years now, because i had added some other mail accounts, so my only problem was fix when you update um.
@cipman-p
I think you can upgrade to last version if you use unity, you have just to copy your actual unity-mail.desktop (from /usr/share/applications) in your ~/.local/share/applications, set it executable and drag it in the unity launcher before upgrade and it works as you expect... Hope it will help.
Cheers

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.