Bug 99673 - When upgrading from 3.3.2 to 3.4 konsole session names and locations are lost for more than one session
Summary: When upgrading from 3.3.2 to 3.4 konsole session names and locations are lost...
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-18 09:26 UTC by Krzysztof Lichota
Modified: 2005-02-19 19:24 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Konsole session file (2.44 KB, text/plain)
2005-02-19 17:10 UTC, Krzysztof Lichota
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Krzysztof Lichota 2005-02-18 09:26:24 UTC
Version:            (using KDE KDE 3.3.92)
Installed from:    SuSE RPMs

I have upgraded from 3.3.2 to 3.4 (beta 2). I had konsole with many sessions with names and different directory locations. After update only first session name and directory was preserved. Other were created, but with default name and home directory.
Comment 1 Kurt Hindenburg 2005-02-19 10:17:11 UTC
I'm a little unclear on what you mean.  Are you saying that the session files (.desktop) were deleted/edited from $KDEHOME/share/apps/konsole?  This is more likely an issue with your distribution.  I'm not familiar with SUSE to know how they upgrade KDE.
Please explain further....
Comment 2 Krzysztof Lichota 2005-02-19 11:17:33 UTC
No, I mean I had Konsole open with many "tabs". Each tab has a name and directory where it started. After upgrade only first tab had a name and it opened in proper directory. Other were opened with default name "Konsole X" (where X are subsequent numbers) and in home directory.
Comment 3 Waldo Bastian 2005-02-19 17:02:58 UTC
There have been some chnages in the way how session information is stored.. It seems it doesn't correctly read the old-style format then... do you happen to have a backup of the old session around? (See ~/.kde/share/config/session)
Comment 4 Krzysztof Lichota 2005-02-19 17:10:09 UTC
Created attachment 9724 [details]
Konsole session file

Possible old konsole session file
Comment 5 Krzysztof Lichota 2005-02-19 17:12:09 UTC
I have attached file which is probably somewhat older version of konsole session which I had. Maybe it is useful.
Comment 6 Kurt Hindenburg 2005-02-19 18:52:38 UTC
konsole --profile ksession.txt

Where ksession.txt is from #4.  The tab names (titles) are correct; however, the directories (Cwd#) are not.
Comment 7 Waldo Bastian 2005-02-19 19:24:55 UTC
CVS commit by waba: 

Fix handling of KDE 3.3 session files.
BUG: 99673


  M +3 -0      main.cpp   1.285


--- kdebase/konsole/konsole/main.cpp  #1.284:1.285
@@ -495,4 +495,7 @@ extern "C" int KDE_EXPORT kdemain(int ar
         m->enableFixedSize(fixed_size);
         m->restore(n);
+        sessionconfig->setGroup(QString("%1").arg(n));
+        if (!sessionconfig->hasKey("Pgm0"))
+            sessionconfig->setDesktopGroup(); // Backwards compatible
         m->makeGUI();
         m->setEncoding(sessionconfig->readNumEntry("Encoding0"));