This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Lancelots launches wrong program

Tags: None
(comma "," separated)
User avatar
joneall
Registered Member
Posts
36
Karma
0

Lancelots launches wrong program

Wed Jun 23, 2010 7:14 am
When I try to launch kdirstat from Lancelot, it launches Kate instead. If i use the standard K launcher, it gets it right.

Right-clicking on the launcher and looking at the Menu Editor gives the correct entry. It looks like Lancelot uses the same config file as the K launcher.

Ideas? TIA.

Also, I see examples where there are just icons with very small names under them in the K launcher window. I see a list with icons to the left. How to change?

Using Kubuntu 10.04 Lucid Lynx with KDE 4.4.2.
User avatar
ivan
KDE Developer
Posts
918
Karma
14
OS
Here are some trouble-shooting questions:
1. Does it happen only for kdirstat->kate, or for something else as well?
2. Does it happen always or just sometimes?
3. How do you launch it - via search, or are you browsing to get to the kdirstat?

You can do the following to additionally help:
1. Open config window and make sure logging (usage statistics) is on
2. Launch KDirStat
3. Post here the last lines of the last modified file in .kde/share/apps/lancelot/log/
(the name will be log-2010-6 if you do that this month :) )


Image
User avatar
joneall
Registered Member
Posts
36
Karma
0
Thanks for your reply.

Here's the end of the log:

$ tail log-2010-6
P/usr/share/applications/keepassx.desktop%wK߳�base-model
Z/usr/share/applications/kde4/krusader.desktop%wK-��$applications-model
R/usr/share/applications/kde4/kpat.desktop%wK3�.$applications-model
`/usr/share/applications/kde4/akonaditray.desktop%wKJ&T$applications-model
P/usr/share/applications/kde4/ark.desktop%wKJ��$applications-model
R/usr/share/applications/kde4/kate.desktop%wKJ��$applications-model
T/usr/share/applications/kde4/kcalc.desktop%wKJЂ$applications-model
h/usr/share/applications/kde4/groupwarewizard.desktop%wKJ�2$applications-model
4Utilities/kdirstat.desktop%wKK
�$applications-model
X/usr/share/applications/kde4/klipper.desktop%wKKN�jon@jon-desktop:~/.kde/share/apps/lancelot/log$ ^C
jon@jon-desktop:~/.kde/share/apps/lancelot/log$ tail log-2010-6
Z/usr/share/applications/kde4/krusader.desktop%wK-��$applications-model
R/usr/share/applications/kde4/kpat.desktop%wK3�.$applications-model
`/usr/share/applications/kde4/akonaditray.desktop%wKJ&T$applications-model
P/usr/share/applications/kde4/ark.desktop%wKJ��$applications-model
R/usr/share/applications/kde4/kate.desktop%wKJ��$applications-model
T/usr/share/applications/kde4/kcalc.desktop%wKJЂ$applications-model
h/usr/share/applications/kde4/groupwarewizard.desktop%wKJ�2$applications-model
4Utilities/kdirstat.desktop%wKK
�$applications-model
X/usr/share/applications/kde4/klipper.desktop%wKKN�$applications-model


If I click on the Kate entry, it opens Kate with the files I last had open. When I click on the Kdirstat button, it opens Kate with an empty file called kdirstat.desktop. But if I look for it in my home directory with

$ find . -name kdirstat.desktop

no such file is found.
User avatar
ivan
KDE Developer
Posts
918
Karma
14
OS
Ok, the problem is that it can't find the desktop file, so it doesn't know that it /is/ a desktop file and can't execute it.

Where is kdirstat.desktop located in the system?


Image
User avatar
joneall
Registered Member
Posts
36
Karma
0
ivan wrote:Ok, the problem is that it can't find the desktop file, so it doesn't know that it /is/ a desktop file and can't execute it.

Don't know why it would want to execute it, but ...

Where is kdirstat.desktop located in the system?


$ find . -name kdirstat.desktop 2>/dev/null
./usr/share/applnk/Utilities/kdirstat.desktop

What purpose does this file serve and who/what put it there?

$ ls -l /usr/share/applnk/Utilities/kdirstat.desktop
-rw-r--r-- 1 root root 515 2008-02-12 05:14 ./usr/share/applnk/Utilities/kdirstat.desktop
User avatar
ivan
KDE Developer
Posts
918
Karma
14
OS

Re: Lancelots launches wrong program

Wed Jun 23, 2010 11:12 am
"Don't know why it would want to execute it, but ..."

When I say /execute/ a .desktop file, I mean, execute the application specified in Exec part of it :) (like executing a shell script which in turn executes some other program)

So, it is in a strange location which lancelot doesn't search for some reason*.

Can you test the following, open konsole from the normal launcher and type
killall lancelot
lancelot

When it starts, try starting KDirStats again. Does the same thing happen?


* what is strange about it - L uses the *same* mechanism as all other app launchers in KDE - it is rather strange to see that it starts in one and not in the other...


Image
User avatar
joneall
Registered Member
Posts
36
Karma
0

Re: Lancelots launches wrong program

Wed Jun 23, 2010 12:29 pm
ivan wrote:Can you test the following, open konsole from the normal launcher and type
killall lancelot
lancelot

When it starts, try starting KDirStats again. Does the same thing happen?


Yes, same result. So why does it work with the K default launcher? Hmmm...

After stopping it (ctl-C), I see processes which were not there before:

$ ps -edf | grep lancelot
jon 6405 1477 0 14:12 ? 00:00:00 kdeinit4: kio_file [kdeinit] file local:/tmp/ksocket-jon/klauncherMT1482.slave-socket local:/tmp/ksocket-jon/lancelotPE6403.slave-socket
jon 6449 1 2 14:16 pts/1 00:00:01 /usr/bin/lancelot
jon 6451 1477 0 14:16 ? 00:00:00 kdeinit4: kio_file [kdeinit] file local:/tmp/ksocket-jon/klauncherMT1482.slave-socket local:/tmp/ksocket-jon/lancelotPE6449.slave-socket
jon 6452 1477 0 14:16 ? 00:00:00 kdeinit4: kio_file [kdeinit] file local:/tmp/ksocket-jon/klauncherMT1482.slave-socket local:/tmp/ksocket-jon/lancelotZK6449.slave-socket
User avatar
ivan
KDE Developer
Posts
918
Karma
14
OS

Re: Lancelots launches wrong program

Wed Jun 23, 2010 12:57 pm
Ok, I've just pushed a /fix/ that will be in 4.5.

Since I can't test this, I can't really say it is a fix, but it was the only weak-spot I noticed in the code, so I hope it will fix this address issue.

---

Just another question, I'm a bit curious - if you right-click the KDirStats and add it to Favourites:
0. It doesn't add anything
1. It is placed in Favs, but doesn't work
2. It is placed in Favs, and it works


Image
User avatar
joneall
Registered Member
Posts
36
Karma
0
ivan wrote:Just another question, I'm a bit curious - if you right-click the KDirStats and add it to Favourites:
0. It doesn't add anything
1. It is placed in Favs, but doesn't work
2. It is placed in Favs, and it works

2a. Something is added to Favorites, But instead of being "Kdirstat - Directory Statistics" with a pretty icon, it's just "kdirstat.desktop" with a greyed-out gear wheel.

Can I get this to work by deleting or moving the kdirstat.desktop file?
User avatar
ivan
KDE Developer
Posts
918
Karma
14
OS
> Can I get this to work by deleting or moving the kdirstat.desktop file?

Most probably, if it is moved to the place the rest of items reside in.


Image
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I would also recommend checking under ~/.local and ~/.kde for any "kdirstat.desktop" files.

Also, try running "kbuildsycoca4 --noincremental"


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
joneall
Registered Member
Posts
36
Karma
0
I tried "kbuildsycoca4 --noincremental", but it didn't help. I can send the output of that if you like.

I did a "find" for all *.desktop files and they are all over the place. Many seem to be in /usr/share/applications, so I copied the file there and erased (well, renamed it) in the old location. I killalled lancelot and restarted it, but the problem persists.

When I do a "save as" in Kate to try to find where it is getting the file, it says it is in ~/Utilities, but this directory does not exist.

So I have no idea what to do except wait for the fix.

Thanks for you help.
User avatar
ivan
KDE Developer
Posts
918
Karma
14
OS
can you post the contents of the file here?


Image
User avatar
joneall
Registered Member
Posts
36
Karma
0
$ kbuildsycoca4 --noincremental
kbuildsycoca4 running...
kbuildsycoca4(2170) KConfigGroup::readXdgListEntry: List entry MimeType in "Utilities/kdirstat.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(2170)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/kde/kresources.desktop" has Type= "Application" but also has a X-KDE-Library key. This works for now, but makes user-preference handling difficult, so support for this might be removed at some point. Consider splitting it into two desktop files.
kbuildsycoca4(2170) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/screensavers/fiberlamp.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(2170) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/screensavers/hypertorus.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(2170) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/screensavers/glmatrix.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(2170) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/screensavers/glcells.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(2170) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/screensavers/antspotlight.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(2170) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/screensavers/gltext.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(2170) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/screensavers/glslideshow.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(2170) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/screensavers/glblur.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(2170) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/screensavers/fuzzyflakes.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(2170) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/screensavers/glschool.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(2170) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/Jalbum.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(2170) KConfigGroup::readXdgListEntry: List entry MimeType in "/usr/share/applications/Jalbum.desktop" is not compliant with XDG standard (missing trailing semicolon).

Also, I made a small mistake. When I really deleted the file kdirstat.desktop, the Kdirstat entry disappeared entirely from Lancelot's menu. Also from Klauncher's.
sixonetonoffun
Registered Member
Posts
2
Karma
0
OS

Re: Lancelots launches wrong program

Thu Jun 24, 2010 12:51 pm
Just want to confirm simular behavior with maxemum TV-Guide. Lancelot opens the maxemumtvguide.desktop in kate instead of the application.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]