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

Installation/build issue : "krita" part.desktop not found

Tags: None
(comma "," separated)
User avatar
laerne
Registered Member
Posts
12
Karma
0
OS
Hello I have a building issue problem and there is no "installation/building issues" forum, so I'm posting here. Admins, feel free to move where this post belong

I have a problem running krita (fedora 20, x86-64, gnome 3.10). I can run and install it without problem, but it crashed when I launched it.
I had to uninstall the stable repository version, and now it does not SIGSEV anymore, but rather it tells me than essential components cannot be found.

I did use kbuildsyscoca4 and variables seems ok so far. Can someone hint me what else might go wrong ?

Here is the output of krita when running. I have no idea why a missing desktop file is critical.
Code: Select all
% ./Project/calligra/opt/bin/krita
Legacy integer arithmetics implementation
###################################
# Adding a tablet device: Wacom Intuos Pro M Pen stylus
Device Type: "Stylus"
# Axes limits data
X:        0 44704
Y:        0 27940
Z:        0 0
Pressure: 0 2048
Rotation: -900 899
T. Pres:  0 0
###################################
# Adding a tablet device: Wacom Intuos Pro M Pen eraser
Device Type: "XFreeEraser"
# Axes limits data
X:        0 44704
Y:        0 27940
Z:        0 0
Pressure: 0 2048
Rotation: 0 1
T. Pres:  0 0
krita(14643)/koffice (lib komain) KoDocumentEntry::queryByMimeType: Got no results with  "[X-KDE-NativeMimeType] == 'application/x-krita' or 'application/x-krita' in [X-KDE-ExtraNativeMimeTypes]"
krita(14643)/koffice (lib komain): Unknown Calligra MimeType  "application/x-krita" .

krita(14643)/koffice (lib komain): Check your installation (for instance, run 'kde4-config --path mime' and check the result).

krita(14643)/koffice (lib komain): "krita" part.desktop not found.

krita(14643)/koffice (lib komain): Run 'kde4-config --path services' to see which directories were searched, assuming kde startup had the same environment as your current mainWindow.

krita(14643)/koffice (lib komain): Check your installation (did you install Calligra in a different prefix than KDE, without adding the prefix to /etc/kderc ?)

krita(14643)/koffice (lib komain): "krita" part.desktop not found.


The variables seem ok (the installation directory is : /home/denethor/Projects/calligra/opt)
% echo $PATH ---- $KDEDIRS
Code: Select all
/home/denethor/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/denethor/.local/bin:/home/denethor/Projects/calligra/opt/bin ---- /usr:/home/denethor/Projects/calligra/opt
% kde4-config --path services         
/home/denethor/.kde/share/kde4/services/:/usr/share/kde4/services/


Thank you for any help !
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
When setting KDEDIRS and PATH, did you export them?
Code: Select all
export KDEDIRS
export PATH

If you don't export them, then changes in your local terminal won't propagate to applications it launches (like kbuildsycoca4 and Krita) but will show up in the value of "echo" for instance.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
laerne
Registered Member
Posts
12
Karma
0
OS
Thank you for the reply. However do not worry, I know it :
Code: Select all
% printenv | grep 'KDEDIRS\|PATH'
QT_PLUGIN_PATH=/usr/lib64/kde4/plugins:/usr/lib/kde4/plugins
WINDOWPATH=1
KDEDIRS=/usr:/home/denethor/Projects/calligra/opt
PATH=/home/denethor/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/home/denethor/bin:/usr/local/sbin:/usr/sbin:/home/denethor/.local/bin:/home/denethor/Projects/calligra/opt/bin
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Can you please try the following? printenv is also part of the shell - so it is affected by the same issues as echo is.
Code: Select all
export PATH
export QT_PLUGIN_PATH
export KDEDIRS
kbuildsycoca4 --noincremental


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
laerne
Registered Member
Posts
12
Karma
0
OS
In my case printenv does not print shell-local variables : it is not a shell builtin, but an independant executable file, so it only inherits environment variables. Anyway, I tried to run with the option, kbuildsycoca4 --noincremental to no avail : I still have the main bug.

Thank you for your help, but I'm sure it isn't that the variables are not exported, but rather that they do not have correct values. I remind you all the error :

Code: Select all
krita(23678)/koffice (lib komain) KoDocumentEntry::queryByMimeType: Got no results with  "[X-KDE-NativeMimeType] == 'application/x-krita' or 'application/x-krita' in [X-KDE-ExtraNativeMimeTypes]"
krita(23678)/koffice (lib komain): Unknown Calligra MimeType  "application/x-krita" .
and
Code: Select all
krita(23678)/koffice (lib komain): "krita" part.desktop not found.
User avatar
laerne
Registered Member
Posts
12
Karma
0
OS
I got it... I was right, but moreover the error was at the most stupid level.
I copied a script that exported the variables from another computer but when I created the folder containing the build, source and installation, I mispelled it : I wrote "Project" instead of "Projects". Thus the exported variables, which used "Projects" were wrong.

Thank you for your help, bcooksley !


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Evergrowing, Google [Bot], rblackwell