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

Using kdeglobals for Kritas environment variables... how?

Tags: None
(comma "," separated)
User avatar
Kubuntiac
Registered Member
Posts
786
Karma
2
I've read through http://community.kde.org/Calligra/Build ... g_Calligra
Both that page and Cyrille seem to suggest that the best method for setting environment variables is addind the install path to $HOME/.kde/share/config/kdeglobals

My install is at:
Code: Select all
/home/user/calligra/calligra-inst


My kdeglobals contains:
Code: Select all
[Calligra Paths]
prefixes=/home/user/calligra/calligra-inst


Yet when I log in and try to run krita from the command line (it doesn't appear in the menu), it doesn't seem to do anything.

I can get it to work fine by using option 1 from the wiki page above on every log in, but this isn't ideal as:
a. I keep having to redo it and
b. I have two sources suggesting the kdeglobals way is better and
c. I'm using this for the builder script (it's the *final* blocker before releasing a far superior version), so normal artists who know nothing about environment variables will keep getting errors and krita not launching unless I find a cross distro way of getting these set automatically on login.


I'm testing on a fresh install of Kubuntu 11.04
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
There is a third option. Create an executable file, with a .sh ending (such as krita.sh) in ~/.kde4/env/. Fill it with the environment variables that you need to set to use Krita.

Make sure that if you are changing KDEDIRS, to place /usr in there as well, otherwise KDE will break in a spectacular fashion (with lots of weird errors).


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Google [Bot], Sogou [Bot]