Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

Restore from the command line #25

Closed
anishsane opened this issue Mar 30, 2012 · 7 comments
Closed

Restore from the command line #25

anishsane opened this issue Mar 30, 2012 · 7 comments
Milestone

Comments

@anishsane
Copy link

Hi,
Steps to reproduce the problem (on gnome desktop):

  1. With this add-on installed, minimize the thunderbird window; so that it goes to notification area.
  2. Try to open it using
    2.1 Alt+F2 -> thunderbird
    2.2 gnome-terminal -> thunderbird
    2.3 Application -> Internet -> Thunderbird
    2.4 Or any other way of opening thunderbird from gnome.

Observation:
Since thunderbird is already running, it tries to restore, rather than opening a new window. However, since the window is hidden using this addon, it is not visible.

Please make a provision to restore the window, if thunderbird command is issued while thunderbird is already running & minimized to notification area.

@foudfou
Copy link
Owner

foudfou commented Mar 30, 2012

Hi,

"rather than opening a new window": In my environment (TB 11.0, Fluxbox 1.3.2, Fedora 16), without FireTray enabled/installed, issuing thunderbird from a terminal has the effect of switching to TB's desktop, and activating it (deiconify+raise+focus). It does not open a compose window.
To open a compose window, you have to use thunderbird -compose, which works well in my environment, FireTray enabled, TB hidden.

I'm not sure this is feasible at all, but could you explain in which situations you'd need to restore TB when the bare thunderbird command is issued ?

@anishsane
Copy link
Author

No... I did not want to open thunderbird compose window.
Just wanted to open plain thunderbird window.
I am running TB 11.0.1 on ubuntu 11.04 & gnome desktop & firetray 0.4.1.

Scenario1: Firetray enabled & TB minimized to tray.
When I issue thunderbird command from terminal (or any method for that
matter), it does not de-iconify.

Scenario2: Firetray enabled & TB not minimized to tray.
It does not focus (the focus remains on gnome-terminal) nor raise
(gnome-terminal remains on top z-order).. But TB gets highlighted in
taskbar (Window List).

Scenario 3: Disable firetray & enable MinTrayR addon.
It does de-iconify & raise the TB window. (but not focus it)
A dirty workaround was to have both addons enabled (in that case also, it
de-iconifies & raises the window), but there may be conflicts between them.
Plus it causes 2 TB icons in notification area.
Plus the features in MinTrayR are limited.

Is there something I am missing?

Anish Sane

"If we couldn't laugh we would all go insane" - Jimmy Buffett

On Fri, Mar 30, 2012 at 2:17 PM, foudfou <
reply@reply.github.com

wrote:

Hi,

"rather than opening a new window": In my environment (TB 11.0, Fluxbox
1.3.2, Fedora 16), without FireTray enabled/installed, issuing
thunderbird from a terminal has the effect of switching to TB's desktop,
and activating it (deiconify+raise+focus). It does not open a compose
window.
To open a compose window, you have to use thunderbird -compose, which
works well in my environment, FireTray enabled, TB hidden.

I'm not sure this is feasible at all, but could you explain in which
situations you'd need to restore TB when the bare thunderbird command is
issued ?


Reply to this email directly or view it on GitHub:
#25 (comment)

@foudfou
Copy link
Owner

foudfou commented Mar 30, 2012

My question was rather: why do you need to restore TB from the command-line ?
Is it because some other application need to call thunderbird to show it ? Is it simply because you rely on the main TB icon (not the FireTray system tray one) to actually restore TB, but there is no keyboard shortcut to do so ?

BTW, have you encountered issue #22, and if yes could you explain how you overcame it ?

@anishsane
Copy link
Author

I have tb as default mail handler & there is an icon in indicator applet.

when there is any new mail on gmail the envelope is highlighted, (using
gm-notify)
when there is any mail in thunderbird, it gets highlighted due to
"thunderbird indicator" addon

So I generally go to that indicator envelope & open TB from there.

Besides, the icon is un-highlighted after I would click on that icon. The
default behavior is click that icon -> it becomes un-highlighted & opens
the TB window.
Now, I need to click that icon to remove highlighting & click the
notification area icon to restore TB.

off-course, this addon does provide separate icon on new mail. Just that
the envelope was a all-in-one way.

Anish Sane

"If we couldn't laugh we would all go insane" - Jimmy Buffett

On Fri, Mar 30, 2012 at 4:21 PM, foudfou <
reply@reply.github.com

wrote:

My question was rather: why do you need to restore TB from the
command-line ?
Is it because some other application need to call thunderbird to show it
? Is it simply because you rely on the main TB icon (not the FireTray
system tray one) to actually restore TB, but there is no keyboard shortcut
to do so ?

BTW, have you encountered issue #22, and if yes could you explain how you
overcame it ?


Reply to this email directly or view it on GitHub:
#25 (comment)

@foudfou
Copy link
Owner

foudfou commented Apr 23, 2012

f86a3ac should fix the issue (and #30). Although it seems that the indicator/window menu is lost after restoring. Need to look into that. [Edit: can't seem to be able to reproduce the loss of menu]

@anishsane
Copy link
Author

Thanks foudfou. Things are working fine now.

@protist
Copy link

protist commented Apr 24, 2012

Thanks for the fix. The loss of the menu is a bit intermittent, I think, so I'll try the new version and report back if the bug is still present. Cheers.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants