two knemo icons while running anything with kdesu

Bug #159810 reported by karaluh
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
knemo (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: knemo

In ubuntu Gutsy, after application runned by kdesu starts, seccond knemo icon appears in systray. To reproduce:
1. Install and start knemo service. An icon in systray should appear.
2. Start any application with kdesu, seccond icon appears

Revision history for this message
Achim Bohnet (allee) wrote :

I could not reproduce is as default behaviour. I did in Gutsy:

    kdesu konsole

and no knemo instance shows up. What are you doing to
trigger the second knemo instance?

FWIW:
knemo is a implemented via a kded service. Every KDE
application needs a kded running. So
when you run an kde app in the login environment of
another user, a second kded is started for the user and
therefore a second knemo is run.

With this in mind I can reproduce you problem with some handish work:

       kdesu konsole

then as root in this window

HOME=/root
cp ~<myuser>/.Xauthority ~/
kwrite &
ps -ef | grep kded

now a another kded is listed and therefore another knemo.
Why this happens by default is not clear.

Please give a concrete example that triggers the second knemo.

Can you run: kdesu konsole

  o is another knemo running?
  o is there a new kded process (ps -ef | grep kded)
  o what the output of
     printenv $HOME
     printenv $KDEHOME
    when you run in in the kdesu konsole window

Achim

Revision history for this message
Achim Bohnet (allee) wrote :

Sorry, that's

  printenv HOME
  printenv KDEHOME

without the $.

Revision history for this message
kubunsero (jebefe) wrote :

The same thing happens in my kubuntu Gutsy:
Every time I run a program with kdesu (for example, when I run adept) a second knemo icon appears in systray.

Replying to questions of Achim Bohmet, when I run (Alt - F2) kdesu konsole:

    Yes, another knemo run, (another knemo icon appears in systray)
    Yes, there is a new kded process:

        # ps -ef | grep kded
           jj 7360 1 1 09:09 ? 00:00:26 kded [kdeinit] --new-startup
           root 7992 1 1 09:39 ? 00:00:02 kded [kdeinit]
           root 8018 7995 0 09:42 pts/1 00:00:00 grep kded

    and this is the output of printenv HOME and printenv KDEHOME in kdesu konsole window:

        # printenv HOME
            /root
        # printenv KDEHOME
                                             (nothing, there is not output)

Greetings.
Kubunsero.

Revision history for this message
Michael Hind (mike-hind) wrote :

just to confirm this

whenever I run adept updater it starts up another instance of kNemo in the System Tray

when the update has completed and I close it the second instance of kNemo exits (a few seconds later)

I am running kubuntu 7.10 updated as of this morning

I have not noticed any ill effects of this

Cheers,

Michael Hind

Revision history for this message
Rich Johnson (nixternal) wrote :

I can not reproduce this following any of the examples of above. I am attaching a screenshot showing Adept Updater running w/o a 2nd KNemo icon in the task bar.

Rich Johnson (nixternal)
Changed in knemo:
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Alchera (barrysuridge) wrote :

I can confirm Michael Hind's post ... Adept will also trigger a duplicate which just happens to be the root's instance of it. I know this as I have a distinct theme for myself and the root stuff hasn't been altered.

I would post a screen shot except for the fact I may have found yet another 7.10 bug. :P

Revision history for this message
Alchera (barrysuridge) wrote :

Addendum:

I followed the same instructions kubunsero did (per Achim Bohmet) with exactly the same results.

I manually killed the extra (root) process.

I have noticed one thing though; I can start Adept, close it, wait a few minutes and then run kdesu dolphin (or whatever) and not get asked for a pass. Could this be why the other knemo fires up?

Revision history for this message
karaluh (karaluh) wrote :

> I have noticed one thing though; I can start Adept, close it, wait a few minutes and then run kdesu dolphin (or whatever) and not get asked for a pass.

IIRC this is a feature gained with transition from Kdesu to Kdesudo. Back to the topic:

1. besides two knemo icons you get also two pop-up windows when inserting cd,
2. installing kde4 from ppa fixes the issue for me. Weird.

Revision history for this message
Rich Johnson (nixternal) wrote :

Confirming due to comments, however I am unable to reproduce this issue.

Changed in knemo:
status: Incomplete → Confirmed
Revision history for this message
Alchera (barrysuridge) wrote :

I permanently stopped it.

kdesu kcontrol~Service Manager ... uncheck KNemo and stop the service.

Revision history for this message
karaluh (karaluh) wrote :

Fixed in Intrepid.

Changed in knemo (Ubuntu):
status: Confirmed → 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.