MyUnity doesn't start if there's a process having the word "myunity" in its command line

Bug #986667 reported by Florian Diesch
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
MyUnity
New
Undecided
Unassigned
myunity (Ubuntu)
In Progress
Undecided
Benjamin Kerensa

Bug Description

MyUnity just quits before doing anything if there is a process with a commandline that contains the word "myunity".

This is caused my CheckProcess() in Main.module

How to reproduce:

Go to the command line and run

 gedit /tmp/myunity

This will open a new file in GEdit

Now try to start myunity: Doesn't work. Close GEdit and you can start MyUnity.

Tags: patch
Revision history for this message
Florian Diesch (diesch) wrote :

In addition this makes t impossible to start MyUnity using a explicit shell like

 sh -c myunity

like it is done for example by ClassicMenu Indicator

Revision history for this message
Margarita Manterola (marga-9) wrote :

Given the way that it is checked how myunity is running, it also wouldn't work if other user of the same machine has myunity open. I'm attaching a patch that fixes both issues.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Fix for the check process procedure" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Benjamin Kerensa (bkerensa) wrote :

Margarita: I have a merge proposal in with your patch which looks like it will work fine.

Changed in myunity (Ubuntu):
assignee: nobody → Benjamin Kerensa (bkerensa)
status: New → In Progress
Revision history for this message
Ivo Anjo (knuckles) wrote :

Yeah, I got bit by this because I still had the Software Center open with apt://myunity .

Revision history for this message
Margarita Manterola (marga-9) wrote :

Benjamin, I had submitted two other patches together with this one, to: https://bugs.launchpad.net/precise-backports/+bug/999771

I was hoping all three patches could be uploaded to backports together, but somehow the other bug now shows up as invalid. I suspect it's related to myunity being removed from Quantal but I'm not sure.

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.