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

Separate profiles for Yakuake and Konsole

Tags: None
(comma "," separated)
User avatar
alefa
Registered Member
Posts
13
Karma
0
OS
Hi everyone,

here's my question: Is it possible to start Yakuake with a different profile than Konsole? I would like to have Yakuake transparent with no scrollbar and Konsole opaque with a scrollbar. For this purpose, I have created two profiles, but I haven't found an option in Yakuake's settings to make Yakuake remember its profile. So every time I log into KDE, Yakuake starts with the Konsole profile (the default) and I have to manually change it, which is slightly annoying. Is there perhaps a command line option for Yakuake to make it start with a certain profile? I've tried googling for a solution, but couldn't find anything useful.
User avatar
google01103
Manager
Posts
6668
Karma
25
haven't actually tested this

Yakuake doesn't seem to have any options but Konsole does, so you could set the default Konsole profile to be transparent with no scrollbar (your Yakuake preference) and start Konsole with a non-default profile using "konsole --profile opaque_with_scrollbar". You'll probably want to alias the Konsole command in bash .rc so not to have to always use the profile option.

let me know if this works


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
alefa
Registered Member
Posts
13
Karma
0
OS
The idea is great, but it doesn't seem to work. Although I've set the transparent profile as default, when I log out and in again, Yakuake (and Konsole) starts with the opaque profile. When I open Konsole's settings I can see that the default has changed to the opaque profile. If I then set the transparent profile as default again, I get the correct behaviour: Yakuake starts with the transparent profile, Konsole with the opaque profile. The problem seems to be that Konsole forgets what the default is at each logout. Any idea how to solve this problem?
By the way, I'm using Debian Wheezy with KDE 4.8.4 (old version, I know).
User avatar
google01103
Manager
Posts
6668
Karma
25

Sat Dec 28, 2013 12:36 pm
try this:
- close Konsole
- in Kate open $KDEHOME/share/config/konsolerc
- look at the section:
Code: Select all
[Desktop Entry]
DefaultProfile=Shell.profile

- is it correct? if not edit proper DefaultProfile=
- restart KDE and see if the default profile is kept


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
alefa
Registered Member
Posts
13
Karma
0
OS
Ok, I tried that. When I set the default profile to the one for Yakuake, the entry in konsolerc reads
Code: Select all
[Desktop Entry]
DefaultProfile=Yakuake.profile

as it should. But after logging out and in again, it changes to
Code: Select all
[Desktop Entry]
DefaultProfile=Shell.profile

This is the profile that I would like to use for Konsole.
To me it looks like there's a bug somewhere that resets the default profile at each login. Any further suggestions? Otherwise I think I'll just assign a keyboard shortcut to the Yakuake profile, to be able to change it quickly after login.
User avatar
google01103
Manager
Posts
6668
Karma
25
when you edited konsolerc were both Konsole and Yakuake closed? double check that there's no processes for either running using Ksysguard and maybe try again


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
alefa
Registered Member
Posts
13
Karma
0
OS
I just tried again and double-checked that no Konsole process was running when I edited the konsolerc. Still, the entry was reset after logging out and in again. :(
But I'll definitely try that again when I upgrade to a newer version of KDE. Thanks for your help, google01103.
User avatar
google01103
Manager
Posts
6668
Karma
25
you might wish to post a bug on bugs.kde.org


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
google01103
Manager
Posts
6668
Karma
25
one other thing to try

logout of KDE and edit the konsolerc file either:
- using vi in a virtual terminal (alt+ctrl+F1)
- logged into an alternative de (xfce, twm, gnome)
- logged in as a different user and "kdesu -u your_account kate"


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
alefa
Registered Member
Posts
13
Karma
0
OS
Cool, that seems to have done the trick! I logged out of KDE and used vim in a virtual terminal to edit the konsolerc. Since then I have logged in and out and even done a complete reboot and the profile settings have been preserved. Thanks a lot, google01103!
I also checked bugs.kde.org for bug reports on lost profile settings in Konsole. There are a few old reports. Most of them were closed at some point or marked as duplicates of other reports. Not sure if it makes sense to open another report on this. I think I'll first check if this problem still exists in newer versions of KDE.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Please note that Yakuake effectively embeds a major part of Konsole, so having Yakuake running could have been preventing the configuration change from being made properly through the user interface - as it was writing the default profile as it was when it was started, when Yakuake exited on logout.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
alefa
Registered Member
Posts
13
Karma
0
OS
I'm not sure I understand your point, bcooksley. I did close Yakuake (using "killall yakuake") before editing the config file. So the fact that the changed settings didn't persist can't have been due to Yakuake running, can it?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Oh, I thought you had only killed Konsole. In that case I guess something else must have been interacting with the Konsole configuration file as well (such as an integrated terminal in Kate). In any case, you've managed to solve the issue.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
alefa
Registered Member
Posts
13
Karma
0
OS
Yeah, that makes sense. I forgot that there's an embedded Konsole in Kate and also in Dolphin. So maybe if I close Kate and Dolphin and use another editor to change the settings in konsolerc, they will persist.


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]