Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 67193 - startkde patch fumbles .kde.backup
Summary: startkde patch fumbles .kde.backup
Status: RESOLVED DUPLICATE of bug 40698
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-11 21:44 UTC by Toby Dickenson
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toby Dickenson 2004-10-11 21:44:19 UTC
back in bug #3827, startkde was patched to add this line:

[ -d .kde ] && /bin/mv .kde .kde.backup

The gentoo standard is to have .kde as a symlink to some the real kde configuration directory. The intended purpose of this line is to move any existing .kde directory out of the way before creating the symlink in its place. /bin/mv should therefore only ever get run once, the first time a gentoo user runs startkde using a non-gentoo home directory.

However it has an unintended effect. The [ -d .kde ] test will also succeed if .kde is a symlink to a directory. This is the normal case, so /bin/mv always gets run.

The first time a gentoo users runs startkde, it creates the .kde3.3 directory and a symlink to it named .kde

The second time a gentoo user runs startkde, it moves that symlink to the name .kde.backup, and recreates a new symlink named .kde

The third (and subsequent) time a gentoo user runs startkde, it moves the existing .kde symlink *into* the .kde.backup directory.

All current gentoo kde users therefore have two spurious symlinks: ~/.kde.backup and ~/.kde3.3/.kde

The fix is to change the startkde patch to only perform that move if the .kde directory is not a symlink:

if [ -d .kde ] && [ ! -h .kde ] && /bin/mv .kde .kde.backup
Comment 1 Gregorio Guidi (RETIRED) gentoo-dev 2004-10-12 01:58:36 UTC
Exact! See bug 40698.
Comment 2 Caleb Tennis (RETIRED) gentoo-dev 2004-10-12 16:25:21 UTC

*** This bug has been marked as a duplicate of 40698 ***