Registered Member
|
Hello
I am using arch linux I have written a plasma app which works when installed into /usr/lib/kde4 /usr/share/kde4/services But I'd like to have it installed into /usr/local/lib/kde4 /usr/local/share/kde4/services How do I get plasma apps to work from /usr/local? It will use files in /usr/local/share/applications /usr/local/share/pixmaps |
Administrator
|
Add a file into $(kde4-config --localprefix)/env/ with the following contents:
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Thanx, I shall try adding the paths tonight
I'm after system wide use of /usr/local/lib not just user specific, where would I add the file in that case? |
Administrator
|
The /etc/ld.so.conf file usually lists include directories for libraries.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
|
Administrator
|
According to http://archive.linuxfromscratch.org/lfs ... x2141.html after editing /etc/ld.so.conf you need to run "ldconfig" as root to update the dynamic loader cache.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
|
Administrator
|
Assuming KDEDIR, KDEDIRS, LD_LIBRARY_PATH and PATH are set correctly when startkde is run, then any KDE component installed in a directory listed in $KDEDIRS will be found and usable.
By setting them using an executable file in ~/.kde4/env/ this is accomplished. You may need to give the file the *.sh ending also.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
I didnt end the ~/.kde4/env/ file with a .sh
It did work when I restarted kde and added it to the system profile I only needed to add /usr/local to KDEDIRS |
Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar