Bug 165602 - Konsole does not save/remember changes in schema when closed/reopened.
Summary: Konsole does not save/remember changes in schema when closed/reopened.
Status: RESOLVED UNMAINTAINED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 1.6.6
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-03 00:03 UTC by Steve Nordstrom
Modified: 2010-06-02 14:54 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Nordstrom 2008-07-03 00:03:57 UTC
Version:           1.6.6 (using 3.5.9 "release 49.1" , openSUSE 11.0)
Compiler:          Target: x86_64-suse-linux
OS:                Linux (x86_64) release 2.6.25.5-1.1-default

This bug/problem is listed as "fixed" in several listings.
But the problem is STILL in KDE 3.5.9.49.1

If it is "fixed" why can I not save a new schema?
Comment 1 Robert Knight 2008-07-03 00:28:21 UTC
> This bug/problem is listed as "fixed" in several listings. 
> But the problem is STILL in KDE 3.5.9.49.1 

Which bug report are you referring to?  
Comment 2 Steve Nordstrom 2008-07-03 04:28:39 UTC
99848,66834, 99152, 54506, 103619 all appear to be reporting the same problem as mine.
Comment 3 Robert Knight 2008-07-13 02:48:48 UTC
> 99848,66834, 99152, 54506, 103619 all appear to be reporting
> the same problem as mine. 

They are all different bugs.  Without knowing more about your case I don't know which one it might be.  Can you please state:

- Steps you followed
- What you expected to happen
- What actually happened
Comment 4 Steve Nordstrom 2008-07-23 14:38:57 UTC
I open Konsole.
The default appearance is white/light yellow background with black print.
I open Settings.
I open Schema.
I select Green on Black (because it reminds me of the old dumb terminals I used to work with).
The appearance of Konsole changes to green print on black background-as selected - and Settings menu closes.
I open Settings again.
(If if open Schema at this point it has an "X" infront of Green on Black - as it should.)
I select Save As Default.
Settings closes.
If I close Konsole and reopen it the schema is white/light yellow with black print again.
No saved schema, no new default.
Comment 5 Robert Knight 2008-07-23 15:04:41 UTC
Right - following those steps produces the expected result for me, the new color scheme sticks.

After changing the schema and closing Konsole, please open ~/.kde/share/config/konsolerc and check if the 'schema=' entry (in the [DesktopEntry] section) has been updated correctly.

Comment 6 Steve Nordstrom 2008-07-23 15:23:47 UTC
Sorry, I am a newbee.
I can't find ~/.kde/share/config/konsolerc.
Even using "Find" (in Konsole) I can't find it.
Where does it live?
Etc?
Sys?
Where?
What am I missing?

Sorry.
Comment 7 Robert Knight 2008-07-23 16:47:04 UTC
The tilde (~) symbol is a short way of writing 'your home folder', which is /home/your-user-name (run 'echo $HOME' in Konsole to find out where that is)

Change to the config directory ('cd ~/.kde/share/config') and check that the 'konsolerc' file actually exists there.  If it does, open it with kwrite or what have you ('kwrite konsolerc').



Comment 8 Steve Nordstrom 2008-07-23 17:13:36 UTC
Okay, I'm in Kwrite.
"Konsolerc" IS in kde/share/config
I didn't expect this file (kde) to be in Home.
Thought it would be down in the guts somewhere.
I have never been in Kwrite before so I am not sure what I am looking at here...
It looks like the config for Kwrite (?).

[$Version]
update_info=konsole.upd:kde2.2/r1,konsole.upd:kde3.0/r1

[Desktop Entry]
ActiveSession=0
AllowResize=false
AutoResizeTabs=false
BlinkingCursor=true
CtrlDrag=true
CutToBeginningOfLine=false
DefaultSession=su.desktop
DynamicTabHide=false
EnableBidi=false
EncodingName=Default
Fullscreen=false
Height 1024=427
LineSpacing=0
MatchTabWinTitle=false
SilenceSeconds=10
TabColor=0,0,0
TabViewMode=0
TerminalSizeHint=false
WarnQuit=true
Width 1280=746
XonXoff=false
class=konsole-mainwindow#1
has frame=true
history=1000
historyenabled=true
keytab=default
schema=GreenOnBlack.schema
scrollbar=2
tabbar=1
wordseps=:@-./_~

[KFileDialog Settings]
Recent Files=$HOME/Documents/Computer/terminal samba try 1

[KPrinter Settings]
ApplicationOptions=app-konsole-printexact,false,app-konsole-printfriendly,true,app-konsole-printheader,true
DialogReduced=false
PrintCommand=
Printer=hl5140series

[TipOfDay]
TipLastShown=2007,7,31,20,1,31

Just so you can see what I see.  :)

Comment 9 Robert Knight 2008-07-23 17:29:34 UTC
> Thought it would be down in the guts somewhere. 

The files in ~/.kde are your personal settings so they need to be stored somewhere which you can read/write from.  Data files for applications which are shared between users are stored in /usr/share (on my Ubuntu system at least).  

I think I may have figured out what is going on.  Navigate to ~/.kde/share/apps/konsole and see if there is a "shell.desktop" file there then open it, delete the "Schema=" line if it exists and save the file, then restart Konsole.

Comment 10 Robert Knight 2008-07-23 17:31:41 UTC
Alternatively within Konsole, go to Settings -> Configure Konsole -> Session tab.  Click the "Shell" session type in the list on the left hand side and click the "Remove session" button.  Click OK, then restart Konsole.
Comment 11 Steve Nordstrom 2008-07-23 18:23:22 UTC
I tried #10 first.
The Remove Session" button was grey and would not let me select it.
I selected the Schema tab and it showed the Green on Black schema.
I selected Apply and OK.

I have not closed this session of Konsole yet because I am too lazy to navigate back to .kde/...etc.
When I open a second session of Konsole it is STILL black on light yellow. :(

Back in Konsole.... I tried #9.
This is what I got...

linux-mnz1:/home/steve # cd .kde/share/apps/konsole
linux-mnz1:/home/steve/.kde/share/apps/konsole # ls
GreenOnBlack.schema  profiles

That's all.
So, I read this to mean that there is NO "shell.desktop" file there.
(by the way, I am using open SUSE 11.0 - in case it matters.)
Comment 12 Robert Knight 2008-07-23 18:35:11 UTC
Try deleting the contents of the 'profiles' directory and the GreenOnBlack.schema file.
Comment 13 Steve Nordstrom 2008-07-23 18:50:49 UTC
Here is what I could/could not do...

linux-mnz1:/home/steve/.kde/share/apps/konsole # ls
GreenOnBlack.schema  profiles
linux-mnz1:/home/steve/.kde/share/apps/konsole # cd profiles
linux-mnz1:/home/steve/.kde/share/apps/konsole/profiles # ls
Green on Black  GreenOnBlack
linux-mnz1:/home/steve/.kde/share/apps/konsole/profiles # rm Green on Black
rm: cannot remove `Green': No such file or directory
rm: cannot remove `on': No such file or directory
rm: cannot remove `Black': No such file or directory
linux-mnz1:/home/steve/.kde/share/apps/konsole/profiles # rm GreenOnBlack
linux-mnz1:/home/steve/.kde/share/apps/konsole/profiles # ls
Green on Black
linux-mnz1:/home/steve/.kde/share/apps/konsole/profiles # cd /home/steve/.kde/share/apps/konsole/profiles
linux-mnz1:/home/steve/.kde/share/apps/konsole/profiles # ls
Green on Black
linux-mnz1:/home/steve/.kde/share/apps/konsole/profiles # cd ~/konsole
-bash: cd: /root/konsole: No such file or directory
linux-mnz1:/home/steve/.kde/share/apps/konsole/profiles # cd /home/steve/.kde/share/apps/konsole
linux-mnz1:/home/steve/.kde/share/apps/konsole # ls
GreenOnBlack.schema  linux.desktop  profiles
linux-mnz1:/home/steve/.kde/share/apps/konsole # cd GreenOnBlack.schema
-bash: cd: GreenOnBlack.schema: Not a directory
linux-mnz1:/home/steve/.kde/share/apps/konsole # ls
GreenOnBlack.schema  linux.desktop  profiles
linux-mnz1:/home/steve/.kde/share/apps/konsole # cd profiles
linux-mnz1:/home/steve/.kde/share/apps/konsole/profiles # ls
Green on Black
linux-mnz1:/home/steve/.kde/share/apps/konsole/profiles # rm GreenOnBlack.schema
rm: cannot remove `GreenOnBlack.schema': No such file or directory
linux-mnz1:/home/steve/.kde/share/apps/konsole/profiles #    

BTW, I just opened another session of Konsole.
Still black on light yellow.
Comment 14 Robert Knight 2008-07-23 19:28:51 UTC
To delete a directory, run:

rm -r <directory>

(where 'r' stands for 'recursive')

To do something with a file that has spaces in its name, you need to surround it with quotes - otherwise the command will assume you are talking about several files.

rm "Green on Black"

OR

rm Green\ on\ Black

(Where the backslash 'escapes' the space so that it is considered part of the first filename)
Comment 15 Steve Nordstrom 2008-07-23 19:40:43 UTC
Okay.
Thanks for the new info on the rm command.
This is what I have now.

linux-mnz1:/home/steve/.kde/share/apps/konsole/profiles # ls
linux-mnz1:/home/steve/.kde/share/apps/konsole/profiles #     

Reads like Profiles file is now empty (?)
Now what?
Comment 16 Robert Knight 2008-07-23 21:59:16 UTC
Go through the steps you mentioned in your original report again, then restart Konsole via Start -> Run Command -> enter "konsole" -> Run. 
Comment 17 Steve Nordstrom 2008-07-23 22:44:13 UTC
Interesting...
I opened Konsole from the K menu and changed the schema, saved it as default as before.
Closed Konsole.
Now, when I open Konsole from the K menu on the panel, it still opens with black on light yellow - same as before.
BUT... when I open Konsole with command line in Konsole, it opens a new session with green on black.

Now what?

BTW, when I enter "konsole" on the command line all I have to do is press Enter and it opens the new session.
That is not the same thing as you said in #16, but it works - or is it different?
Comment 18 Robert Knight 2008-07-23 23:29:40 UTC
> Now, when I open Konsole from the K menu on the panel,
> it still opens with black on light yellow - same as before. 

Right click on the "Konsole" icon in the K-Menu and select 'Edit Item'.  In the window that appears, there should be a text field labeled "Command" on the right-hand side.  Change the text to "konsole" and close the window - choosing to save changes when prompted.
Comment 19 Steve Nordstrom 2008-07-24 00:58:39 UTC
I did not have the Terminal icon in my K-Menu (I was selecting Konsole from Favorites), so I added the Terminal icon to my K-Menu.

A right click on the Konsole icon in the K-Menu does not show "Edit Item".
The only choices are "Remove from Favorites, Add Item to Desktop, Add Item to Main Panel, Put Into Run Dialog".

A right click on the Terminal Program (Konsole) in Favorites does not show an "Edit Item".

I poked around and found Edit Item in K-Menu, Applications, System, Terminal, Terminal Program - Konsole.
A right click here on Edit Item opens the dialog box you refer to (I think)
The text field "Command" already has "Konsole" in it.

If I open Konsole from ANY icon, it STILL opens with black on light yellow.
So it seems that the only way to get my schema is to open Konsole and then open another session from there.

Your thoughts?
Comment 20 Robert Knight 2008-07-27 00:17:57 UTC
> That is not the same thing as you said in #16, but it works - or is it different? 

It might be different.  I'm guessing you have a different K-Menu than the one I'm looking at.  Please try launching Konsole as follows:

Press Alt+F2, in the dialog box that appears type "konsole" and press return.

> The text field "Command" already has "Konsole" in it. 

Just the text "konsole" with nothing else afterwards?
Comment 21 Steve Nordstrom 2008-07-27 04:21:44 UTC
1)  When I launch Konsole with Alt+F2 the schema is black on light yellow as usual (and not desired).

2)  The text field "Command" has nothing else in it but "Konsole".

(BTW, Robert, thank you for your patience in this silly little problem.)



Comment 22 Kurt Hindenburg 2010-06-02 14:54:58 UTC
KDE 3 is not supported any longer.  Let us know if you have  the same issue on a late KDE 4 system.