Hi,
Having a look at http://trinity.etherpad.trinitydesktop.org/24 (FAQ DRAFT), I would like to find this question (-: and response!): « Will my personal home directory, created and actualy used by KDE3, be compatible with Trinity? That is: will I keep KDE3 themes and all my settings for the differents KDE softwares? In that context, what will appen if I compile Trinity as is, now?
Hoping that the author(s) will understand my "basic user"'s preoccupations...
Sincerly Patrick
NOTE: http://www.trinitydesktop.org/releases.php -> error 404
Hi, Having a look at http://trinity.etherpad.trinitydesktop.org/24 (FAQ
DRAFT), I would like to find this question (-: and response!): « Will my personal home directory, created and actualy used by KDE3, be compatible with Trinity? That is: will I keep KDE3 themes and all my settings for the differents KDE softwares? In that context, what will appen if I compile Trinity as is, now?
Hoping that the author(s) will understand my "basic user"'s
preoccupations...
Sincerly
Patrick
NOTE: http://www.trinitydesktop.org/releases.php -> error 404
I do understand your question and the motivation for it. :-)
All I can say right now is that TDE *should* keep your existing settings. There are some areas where things won't work quite right unless you move your ~/.kde folder to ~/.trinity and find/replace ".kde" with ".trinity" inside of it however (kmail being one).
Regarding the link, it works here. Does anyone else have problems with it?
On Thursday 17 November 2011 12:37:31 pm Patrick Serru wrote:
Hi, Having a look at http://trinity.etherpad.trinitydesktop.org/24 (FAQ
DRAFT), I would like to find this question (-: and response!): « Will my personal home directory, created and actualy used by KDE3, be compatible with Trinity? That is: will I keep KDE3 themes and all my settings for the differents KDE softwares? In that context, what will appen if I compile Trinity as is, now?
Hoping that the author(s) will understand my "basic user"'s
preoccupations...
Definitely good to add to the FAQ.
Someone else will have to confirm, but I think it should transfer over. I haven't tried it, but I think the config files would remain the same.
« Will my personal home directory, created and
actualy used by KDE3, be
compatible with Trinity? That is: will I keep KDE3
themes and all my
settings for the differents KDE softwares? In that
context, what will appen
if I compile Trinity as is, now?
Hoping that the
author(s) will understand my "basic user"'s
preoccupations...
Definitely good to add to the FAQ.
Someone else will have to confirm, but I think it should transfer over. I haven't tried it, but I think the config files would remain the same.
The short answer is yes, all settings will transfer. That is, I have yet to see any problems.
The better question is how to get there? Simply copying ~/.kde3 to ~/.trinity does not work.
In my Slackware README files for my packages I include the following notes.
I'm pretty sure KPatience will fail to function in all systems because of the way KPatience hard-codes the card back information in the config file. Any migration tool should update that config file to the new trinity locations. KPatience will start with no cards showing because the old path does not exist (/usr vs /opt/trinity).
The last thing we need is Yet Another Reviewer claiming s/he can't play Solitaire after migrating the old settings. Deleting the config file is not an option --- people get rather attached to the card backing they selected. :)
Possibly we should create a web page with these instructions or better, create a migration script or tool. Then in the FAQ we provide a link to the information.
Remember: not everybody is a geek. we need to help users copy/move their existing KDE3 profile directory. Slackers don't mind reading README files like this, but most everyday users do not. They want point-and-click. Especially if the person is using KMail --- read below to see why.
==================================================== Migrating from KDE 3.5.10 to Trinity is straightforward.
For those who want to start with a clean Trinity user profile directory, don't do anything. You'll see the KPersonalizer applet start and the default Trinity desktop. Configure thereafter to taste.
======== NOTES: ========
For graphical login users, the Trinity login manager is broken in Slackware. Please use the KDE 4 login manager or use run level 3.
For those folks wanting to use an existing KDE 3 profile, there are some (simple) steps to perform:
======== ONE ========
If in graphical startup mode, toggle to console 6 (Alt-Ctrl-F6), and log in with your user account. If in command line startup mode, then log in. In either case do not run startx.
Run the following command, but modify ".kde3" as appropriate for your KDE 3 profile directory. Be sure not to copy the KDE 4 profile directory!
cp -a ~/.kde3 ~/.trinity
You now have a Trinity profile directory, but one that is "contaminated" with KDE 3 connections.
======== TWO ========
Run the following commands:
rm -fr ~/.trinity/cache-* rm -fr ~/.trinity/socket-* rm -fr ~/.trinity/tmp-*
Trinity will recreate those directories.
======== THREE ========
NOTE: If you use KMail and store your emails in your home directory then you might want to exclude that file path from the search criteria.
Run the following command (modify ".kde3" as appropriate for your KDE 3 profile directory.):
find ~/.trinity -path ~/.trinity/share/apps/kmail/mail -prune -o -type f \ -exec sed -i 's|/.kde3|/.trinity|g' {} ;
Run the following command (modify the paths as appropriate)
find ~/.trinity -path ~/.trinity/share/apps/kmail/mail -prune -o -type f \ -exec sed -i 's|/opt/kde3/|/opt/trinity/|g' {} ;
Run the following command (modify the paths as appropriate)
find ~/.trinity -path ~/.trinity/share/apps/kmail/mail -prune -o -type f \ -exec sed -i 's|/usr/share/|/opt/trinity/share/|g' {} ;
These commands will find all references in all profile text files, including configuration files and change the references from your KDE 3 profile directory to your new Trinity profile directory.
======== FOUR ========
To avoid conlicts with KDE4, you might want to disable the /etc/profile.d kde.[c]sh and qt4 scripts.
You might want to recreate any sym links in ~/.trinity/Autostart and check any *.desktop files stored there for the correct path to the Trinity parent directory (default is /opt/trinity and not /usr).
If some apps fail to function properly and you migrated a KDE 3 profile directory, check the app's config file in ~/.trinity/share/config for incorrect file paths. Or just delete the config file. A common example is KPatience (solitaire card game), which hard-codes the file path to the user's preferred card backing deck.
======== THE END ========
If in graphical startup mode, then log out and return to the login manager (Alt-Ctrl-F1). If in command line startup mode, then run the startx script as usual. ====================================================
Darrell
On Thursday 17 November 2011 19:01:21 Darrell Anderson wrote:
Migrating from KDE 3.5.10 to Trinity is straightforward.
. . <snip>
well written, Darrell :)
my own migration, however, went with less effort (but some hand-editing, though): I just copied my old $HOME from debian lenny (kde 3.5.10) over to my fresh squeeze install with trinity 3.5.13, then made a symlink: ln -s $HOME/.kde $HOME/.trinity before logging into trinity. had to change some occurrences of /usr/lib to /opt/trinity/lib in 1 config file afterwards and all was ok.... (kmail worked 'out of the box' with this approach, most likely due to the fact that I have no local mail storage, but IMAP).
maybe it is a good idea to provide a migration script for kde3 users in the FAQ.
werner
At one time I had submitted code to attempt a profile directory migration from within in startkde.
Here is the snippet. Probably needs some more error checking!
================================== if [ -n "$KDEHOME" ]; then echo "[startkde] KDEHOME is preset to $KDEHOME." 1>&2 export KDEHOME=$KDEHOME else # $KDEHOME is NOT already preset in the environment. Try to help. # This might be overkill but does provide flexibility. echo "[startkde] KDEHOME is not set." 1>&2 # This script and kstandardirs.h and kstandardirs.cpp must match. # The latter two must be edited/patched before compiling. export KDEHOME=$HOME/.trinity echo "[startkde] Set KDEHOME to $KDEHOME." 1>&2 # This is a feeble attempt to migrate a KDE3 profile to Trinity. If $HOME/.trinity exists # then skip this one-time migration section. if [ ! -d $HOME/.trinity ]; then if [ -d $HOME/.kde3 ]; then # If $HOME/.kde3 exists, probably safe to presume a profile from KDE3 or a previous Trinity. # Go ahead and migrate that profile. cp -a $HOME/.kde3 $HOME/.trinity elif [ -d $HOME/.kde ]; then # This is tricky --- ensure this profile directory is NOT KDE4. if [ ! -f $HOME/.kde/share/config/nepomukstrigirc ] && [ ! -f $HOME/.kde/share/config/phonondevicerc ] && [ ! -f $HOME/.kde/share/config/plasma-desktoprc ]; then # That was three different tests. Probably not a KDE4 profile. There is a chance # the user's KDE3 profile got contaminated testing KDE4. If that is the case then # too bad. The safe route is not to migrate. Otherwise if this 3-point test passes # then migrate the profile. cp -a $HOME/.kde $HOME/.trinity
# Let's remove any KDE3 "contamination."
rm -fr ~/.trinity/cache-* rm -fr ~/.trinity/socket-* rm -fr ~/.trinity/tmp-*
# Need to fix the following lines with the correct path for the old KDE profile directory! find ~/.trinity -path ~/.trinity/share/apps/kmail/mail -prune -o -type f -exec sed -i 's|/.kde3|/.trinity|g' {} ; find ~/.trinity -path ~/.trinity/share/apps/kmail/mail -prune -o -type f -exec sed -i 's|/opt/kde3/|/opt/trinity/|g' {} ; find ~/.trinity -path ~/.trinity/share/apps/kmail/mail -prune -o -type f -exec sed -i 's|/usr/share/|/opt/trinity/share/|g' {} ;
# Need to fix certain config files! The previous find command should fix such config files. # kpatrc (KPatience); change /usr/share to $PREFIX/share # Back=/usr/share/apps/carddecks/decks/deck2.png # Cards=/usr/share/apps/carddecks/cards-default/
# Need a way to update sym links in ~/.trinity/Autostart!
# etc.! fi fi fi fi ==================================
In this post I added the cleanup commands I posted earlier and comments for additional migration support. This snippet needs more work and is posted only as a starter.
Darrell
Here is the snippet. Probably needs some more error checking!
I always feel bad I don't code in C++, but I can handle shell scripts. Here is an updated startkde with a section of code for migrating an existing KDE3 profile.
I ran several tests here. Seems to work, but I am only one person on one system. :)
Please test and provide feedback!
Link: http://humanreadable.nfshost.com/trinity/patches/kdebase/startkde-R14.0
Darrell