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

konsole colorscheme from non-default location

Tags: None
(comma "," separated)
julianmann
Registered Member
Posts
2
Karma
0
Hi there

I need to change konsole colorscheme from a profile stored in a non-default location using the command line. The reason is that users will have their shell colour set based on the project environment they are working on.

Here's what I tried:

make a directory ~/uncommon/kde4/share/apps/konsole
create a profile called Baz the standard way using Konsole -> Settings -> Manage Profiles
I now have Baz.profile and Baz.colorscheme
I move both files from ~/.kde4/share/apps/konsole to ~/uncommon/kde4/share/apps/konsole/
I append that directory to the KDEDIRS path variable - so it is now: /usr:/usr/people/julian/uncommon/kde4/share/apps/konsole As a control, I also made a colorscheme called Bosh and left it in the default location.

Now, if I type: konsole --list-profiles I get:

Shell
New Profile
Bosh
Baz

So it seems the KDEDIRS path is correct. konsole knows about my profiles. However, if I type:

konsoleprofile ColorScheme="Baz"

The konsole goes white. It should go purple as defined in Baz. White is also the color it goes when I give it an obvious non-existent name like Foo. If I try that same command on Bosh it works and the konsole goes purple.

So how can I get the konsole to change to the Baz colour scheme.

Qt: 4.8.5, KDE: 4.3.4, Konsole: 2.3.3

Thanks
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Could you try setting KDEDIRS to the following instead?
Code: Select all
/usr:/usr/people/julian/uncommon/kde4

Please note that you may need to make this change available to your whole session by setting the environment variable early on in the startup process.
You can do this by creating a executable file at "`kde4-config --localprefix`/env" with a .sh extension containing the appropriate shell compatible commands. Eg:
Code: Select all
export KDEDIRS=/usr:/usr/people/julian/uncommon/kde4/

Note that it is also important the structure beneath /usr/people/julian/uncommon/kde4 is the same as the one followed by your distribution - some respect the KDE default of $prefix/share/apps/ while others change it to use $prefix/share/kde4/apps/


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


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]