The keyboard shotcuts can launch applications with more than one instances

Bug #153509 reported by yanglei
8
Affects Status Importance Assigned to Milestone
Moblin Applets
Fix Released
Medium
ToddBrandt

Bug Description

in current image, we found the control panel and moblin-chat are singleton apps.
but if we use keyboard shortcuts to launch application more than once, it seems the apps can also have more instances at one time.

steps:
1. launch control panel -> keyboard shortcuts
2. edit the shortcut for "launching chat"
3. launch moblin-chat from UI
4. use keyboard shortcuts to launch another instance of moblin-chat

expected results:
the keyboard shortcuts should just activate the existed application but not launch a new instance.

yanglei (lei-a-yang)
Changed in moblin-applets:
assignee: nobody → todd-e-brandt
importance: Undecided → Medium
Revision history for this message
ToddBrandt (todd-e-brandt) wrote :

Are you sure this isn't a bug in the application itself? If it should be capable of launching multiple instances then it should have a mutex to prevent it. I can think of cases where having multiple windws might be useful, for instance what if you want to work on two notepade instances?

Changed in moblin-applets:
status: New → Incomplete
Revision history for this message
yanglei (lei-a-yang) wrote : RE: [Bug 153509] Re: The keyboard shotcuts can launch applications withmore than one instances

I don't know how the keyboard shortcuts start the applications.
I found if I launch application by command (in terminal), it will be
launched with multi instances.

So I think this is not an application relevant bug.

Revision history for this message
yanglei (lei-a-yang) wrote :

I change the status of traiged.
Todd, I dont' know if the correct owner is you. If your answer is No, please inform me or change to someone else. sorry for inconvenience.
update information:
1. update steps:
 > launch control panel -> keybindings
 > edit or check the application shortcut
 > uset the shortcut to launch application instances (more than 1 instance)

2. in my understanding, this is not only relative to control panel applet keyboard shortcut but also to application implementation.
   currently, the singlton application feature depends on X-OSSO-Service flag. But when we launch application with shortcut, it will not check X-OSSO-Service flag. So we can launch more than 1 instances in this case.

3. This is violate the "singleton application" rules.
In the latest image (2007/11/19),

Changed in moblin-applets:
status: Incomplete → Triaged
cathyli (cathy-li)
Changed in moblin-applets:
milestone: none → m8
Revision history for this message
cathyli (cathy-li) wrote :

Todd, any update about the issue? I found it still exists in moblin-applets 0.24.

Revision history for this message
cathyli (cathy-li) wrote :

Change milestone to M9

Changed in moblin-applets:
milestone: m8 → m9
Revision history for this message
cathyli (cathy-li) wrote :

The bug is relevant to moblin-chat, change milestone tag to fix-later.

Changed in moblin-applets:
milestone: m9 → fix-later
Revision history for this message
ToddBrandt (todd-e-brandt) wrote :

Fixed in 0.45, I added code to moblin-settings-daemon to have it monitor any processes it spawns as a result of shortcut calls and to prevent relaunching an app if an instance already exists.

Changed in moblin-applets:
status: Triaged → Fix Committed
Margie (margie-foster)
Changed in moblin-applets:
milestone: fix-later → m10
Revision history for this message
cathyli (cathy-li) wrote :

Verified in applets 0.49, the issue is fixed. Can only launch one IM instance with keyboard shortcut.

Changed in moblin-applets:
status: Fix Committed → Fix Released
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.