Awn

minimize an app to tray and them click it again in avn opens the application again

Bug #137399 reported by LordSavage
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Awn
Won't Fix
Undecided
Unassigned

Bug Description

when you minimize an app to tray and then click it again in avn the application opens again and you have two of them running. the arrow appears too, when you put the application to tray.

Revision history for this message
Isaac Joseph (isaacj87) wrote :

I'm not getting these problems. Could you be more specific. What app is AWN doing this to. I've tried opening firefox, banshee, movie player, and like I said I don't get these problems.

Revision history for this message
LordSavage (lordsavage) wrote :

i mean to systray. rhythmbox and pidgin for example do that.

Revision history for this message
haytjes (h4writer) wrote :

It isn't possible to fix this. We (the program) cannot know if it goes to systray.

Changed in awn:
status: New → Won't Fix
Revision history for this message
satkata (satkata-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

This is not a problem of awn.

pidgin had really this problem before version 2.1.1
I have reported this to the developers and it is fixed now. When I minimize pidgin to systray and click on the icon in awn, nothing happenes. It's the perfect solution, but at least I'm not beeing logged out from icq as before.

So I think, the developers of each application that can go to systray should consider this in a future relaeses.

But I still have that problem with skype. It's already reported, but would be nice, if more people complain to the skype developers, so they can see, that more users are annoyed by such behavour.

Revision history for this message
TWO (two) wrote :

I realise this is an old report but I thought I'd write here anyway.

"It isn't possible to fix this. We (the program) cannot know if it goes to systray."

Why isn't it possible for the program to detect whether something has been minimised to the system tray? I am no programmer, and for that reason I think a good explanation of the reasoning would help to clear that up.

Is there not some way to define programs which are specifically opened by the user? (Probably not, but I thought it was worth asking anyway.)

My only suggestion to those who use AWN and wish for the instance of a program that closes to the system tray when 'x' is clicked to be available in the dock, should just minimize the window instead if they want to close it.

Revision history for this message
Mark Lee (malept) wrote :

All the task manager does (be it GNOME Panel's window list or Awn's taskmanager) is list the application windows that are open. If you're lucky and you use an Awn launcher to open an app (and the app doesn't use some weird method like a wrapper script to run), said app gets associated with the launcher until the application window is "destroyed". (When you close a window, even if you close it to minimize to tray, the window is destroyed.) When that happens, the launcher disassociates because there's no window to associate the launcher with, and it allows left-clicks to launch a new instance of the app.

My suggestion? Disable tray icon support in the apps you use, if you can. It's definitely possible in Pidgin, at least.

Revision history for this message
Milan Knizek (knizek) wrote :

> All the task manager does (be it GNOME Panel's window list or Awn's taskmanager)
> is list the application windows that are open.

This statement still does not mean that some (being AWN or other) task manager could take into account also apps minimised to tray. (I.e. make the panel different from others.)

I came to test AWN since I was looking for a simple launcher for my parents, who do not want to care if the application (skype, firefox, evolution) is running, minimized to tray, hidden by another window, minimized to systray or not running at all. They just want to click a single icon to have the application window showed on top.

> My suggestion? Disable tray icon support in the apps you use, if you can.
> It's definitely possible in Pidgin, at least.

Well, that is not possible for skype. I plan to try to create own launchers to test if the app is already running under the current user and then try to focus (or open) its window.

Revision history for this message
Michal Hruby (mhr3) wrote :

You can still disable notification-area completely, that would work even for skype.

Revision history for this message
Milan Knizek (knizek) wrote :

> You can still disable notification-area completely, that would work even for skype.

Really? I removed the notification applet from gnome-panel (so that only logout + speaker volume applet stayed) and also checked that the notification applet was not activated in AWN, but nothing has changed in Skype behaviour.

I.e. run Skype, login and close the roster (by clicking X on the window decoration). Skype window disappears (to systray, but since I do not have the notification area, I cannot see that). Then, clicking Skype icon in the launcher runs another Skype session, which conflicts with the earlier one.

Revision history for this message
Milan Knizek (knizek) wrote :

Finally, I solved the particular problem with Skype as follows:

Install Skype4py API for Skype (use google). Alternatively, D-BUS messaging could be used, too.

Create own launcher in AWN to run this script:

#!/bin/bash
# mk-skype_launcher.sh
user=`whoami`
ps -U $user -u $user u | grep /usr/bin/skype.real | grep -v grep
if [ $? -eq 0 ] ;
  then
  echo "Restoring Skype from systray..."
  /usr/local/bin/mk-skype_focus.py &
else
  echo "Starting Skype..."
  skype &
  /usr/local/bin/mk-skype_focus.py &
fi
exit 0

And create also this helper script:

#!/usr/bin/env python
# mk-skype_focus.py
import Skype4Py
# Create Skype instance
skype = Skype4Py.Skype()
# Connect Skype object to Skype client
skype.Attach()
# When the window is open, focus does not bring it on top
skype._DoCommand('MINIMIZE')
skype._DoCommand('FOCUS')

Revision history for this message
tiznom (tiznom) wrote :

I just had this problem too, and I found a simple workaround. In the AWN Manager make sure to add the "Notification Area (systray)" applet activated. This will give you a smaller Skype icon that you can click to bring up the already running instance of Skype. Good luck.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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