hardy, krita-kde4 doesn't start, complains about .desktop files not found

Bug #185551 reported by Alexander Rødseth
This bug report is a duplicate of:  Bug #381599: kword fails to start. Edit Remove
14
Affects Status Importance Assigned to Milestone
koffice2 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: krita-kde4

I have installed a package named "krita-kde4" version: 1:1.9.96.0~svn757194-1ubuntu2

I could find two associated executable files:
~% dpkg -L krita-kde4 | grep bin/
/usr/lib/kde4/bin/krita
/usr/bin/krita-kde4

Where only krita-kde4 is in the path:
~% which krita-kde4
/usr/bin/krita-kde4
~% which krita
/usr/bin/krita

Here's my kernel:
 ~% uname -r
2.6.24-4-generic

When I start krita-kde4, I get this:
~% krita-kde4
findServiceByDesktopPath: kritapart.desktop not found
findServiceByDesktopPath: Office/krita.desktop not found

I have no idea what it's looking for and why.

Expected behavior is to start up, regardless of any desktop icons/launchers.

Revision history for this message
Alexander Rødseth (alexanro) wrote :

Yay! Krita starts up now! :-)

Changed in koffice2:
status: New → Invalid
Revision history for this message
Leonardo Gastón De Luca (leorockway) wrote :

This is not working in Gutsy. I get the same error.

Revision history for this message
Alexander Rødseth (alexanro) wrote :

This should be marked as confirmed for Gutsy and Hardy then, not "invalid". I don't even see why this was marked as invalid in the first place - why was it, Harald?

Revision history for this message
echoes (echoes-deactivatedaccount) wrote :

i have the same problem with all of my koffice2 apps. i don't understand why this was marked invalid either.
i suppose that koffice2 is looking for the *.desktop files in a certain place and they aren't there. however, for me with kword for instance:
kword-kde4
bash: kword-kde4: command not found
(^ don't know if this matters, but included it any way)

i know the "real" path to the binary, which is /usr/lib/kde4/bin/, so:
/usr/lib/kde4/bin/kword
findServiceByDesktopPath: kwordpart.desktop not found
findServiceByDesktopPath: Office/kword.desktop not foun

so:
mlocate kword.desktop && mlocate kwordpart.desktop
/home/echoes/.local/share/applications/kde4-kword.desktop
/usr/lib/kde4/share/kde4/services/krossmodulekword.desktop
/usr/share/app-install/desktop/kde4-kword.desktop
/usr/share/app-install/desktop/kword.desktop
/usr/share/applications/kde4/kword.desktop
/usr/share/mimelnk/application/x-kword.desktop
/usr/lib/kde4/share/kde4/services/kwordpart.desktop

so the files are there, but koffice2 can't find them. i don't know where specifically it is looking for those desktop files, but i assume a symlink would suffice, if someone could tell me where it is looking for those desktop files i could possibly solve this.

Revision history for this message
Christian Schürer-Waldheim (quincunx) wrote :

I can confirm that this problem exists.

krita-kde4:
  Installed: 1:1.9.96.0~that.is.really.1.9.95.3-1ubuntu3
  Candidate: 1:1.9.96.0~that.is.really.1.9.95.3-1ubuntu3

Changed in koffice2:
status: Invalid → Confirmed
Revision history for this message
Christian Schürer-Waldheim (quincunx) wrote :

Some more information on this bug.

I installed krita-kde4 and tried to start it in my kde3-session, which leads to the above stated error message. If I open an kde4-session, krita-kde4 starts without any problem. When I switch back to the kde3-session, I can start krita-kde4 without any error message.

So I think there are some processes not running or some initialisation is missing if you try to run krita-kde4 within a kde3 session.

Could anyone verify if this is the same behaviour on other computers too, please?

Revision history for this message
Karolus (masked-mail) wrote :

This bug disappears (for me) after I've deleted
/var/tmp/kdecache-kstanisl/ksycoca4

Revision history for this message
Tomi Kyöstilä (tomi-kyostila) wrote :

I had a similar problem with kspread-kde4 (.desktop files not found) and removing /var/tmp/kdecache-tomik/ksycoca4 fixed it.

Revision history for this message
Leonardo Gastón De Luca (leorockway) wrote :

If I remember correctly you only had to kbuildsycoca (or the KDE4 equivalent... maybe kbuildsycoca4?).
The problem is solved.

Revision history for this message
Adrien Cordonnier (adrien-cordonnier) wrote :

I have had the same bug after installing Koffice 2 beta 3 on Intrepid (package koffice-kde4 from backport repositories). No Koffice application could start. Executing "rm /var/tmp/kdecache-$USER/ksycoca4" fixed the problem. I think this command should be run for every user in the installation process.

Revision history for this message
Kai Schroeder (kai-schroeder) wrote :

I can confirm both the bug and the workaround for jaunty.

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.