Bug 180358 - Weird behaviours of KDE installed on a symlink base directory
Summary: Weird behaviours of KDE installed on a symlink base directory
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: kdecore (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-11 18:40 UTC by Gökçen Eraslan
Modified: 2023-01-07 05:25 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
.xsession-erros file of the user (24.95 KB, text/plain)
2009-01-11 23:05 UTC, Gökçen Eraslan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gökçen Eraslan 2009-01-11 18:40:38 UTC
Version:           4.1.96 (using Devel)
Compiler:          gcc 4.3.2 
OS:                Linux
Installed from:    Compiled sources

In our KDE4 based livecd, /usr directory is a symlink to a directory /mnt/livecd. This causes some bugs in KDE. For example, when you try to change wallpaper, the wallpaper list contains each wallpaper twice. 

And, although the Turkish l10n package is installed and all KDE4 programs are shown in Turkish, when you want to add a plasmoid to the desktop, names and descriptions of the plasmoids(Analog Clock - An SVG themeable clock) are in English. It seems all translations come from desktop files (module names of systemsettings for example) are in English. But the rest of the KDE is in Turkish and translations have no problems.

When we remove the symlink and, bind a normal /usr directory (with mount -o bind) all problems are gone, so this means symlinks are not handled properly. 

Bug #150307 may be related, but this is not a dup i think.
Comment 1 Gökçen Eraslan 2009-01-11 19:12:00 UTC
This commit[1] of asiego may be related about this bug.

[1] http://websvn.kde.org/?view=rev&revision=906191
Comment 2 Gökçen Eraslan 2009-01-11 19:17:47 UTC
By the way, KDE4 prefix is /usr/kde/4.
Comment 3 Aaron J. Seigo 2009-01-11 22:34:43 UTC
the wallpaper issue has nothing to do with kdelibs at all, it it plasma. and yes, that commit fixes the wallpaper issue. 

as for translation issue, those names come directly out of the system configuration cache along with all other plugins used by KDE applications. that part would be about kdelibs.
Comment 4 Gökçen Eraslan 2009-01-11 22:53:16 UTC
Yes, wallpaper issue is plasma related but, r906191 does not solve the problem. I've compiled the RC1 tarballs which includes this commit about symlinks and still all wallpapers are listed twice. 

However, something has changed after the commit. Before the commit, first list of wallpapers has no thumbnails and cannot be set as wallpaper but second list of the same wallpapers can be seen as thumbnails and can be set as wallpaper. After the commit still there are 2 list of the wallpapers and all of them have thumbnails and can be set as wallpaper. But, issue is still there are 2 list of wallpapers(each wallpaper is listed twice) 

If bug's component is wrong, you may change it, or I can file a bug about wallpaper issue in the plasma component.
Comment 5 Gökçen Eraslan 2009-01-11 23:05:14 UTC
Created attachment 30147 [details]
.xsession-erros file of the user

KDirWatch lines are strange, this may be related with this issue.
Comment 6 Aaron J. Seigo 2009-01-12 20:16:49 UTC
It could be that we're getting back listings for both the symlink and the real path from KStandardDirs or KDirLister or .... something =)

If someone who uses a system with such a symlinked up system could do some testing and debugging, that would be great.

As this is not a common situation, it would be nice if those impacted by it could help polish this part of the experience. Much more efficient than me hurling patches over the wall to you.

And no, I'm not about to go change my system to use symlinks everywhere. =)

(The alternative of someone sending me a computer with such a system already on it seems the least likely of the scenarios ;)
Comment 7 Ozan Çağlayan 2009-01-14 09:25:48 UTC
Actually there exists a very simple test case:

# mv /usr /old_usr
# ln -s /old_usr /usr

and restart kde, here it is.

I'd like to help with this bug but it's hard to find a starting point, I'm gonna start from the classes you mentioned.
Comment 8 Christoph Feck 2009-06-17 00:05:33 UTC
I had the same problem, for example in systemsettings all KWin window decoration clients showed up twice in combo box. I am currently using a non-symlinked install dir, so I cannot do any further testing right now.

The problem is probably in KStandardDirs::KStandardDirsPrivate::resourceDirs(), where it does compare with installprefix, without checking if it is a symlink, or in KStandardDirs::installPath().
Comment 9 Andrew Crouthamel 2018-11-02 22:58:16 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 10 Andrew Crouthamel 2018-11-16 05:23:27 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version?

Thank you for helping us make KDE software even better for everyone!
Comment 11 Justin Zobel 2022-12-08 23:51:20 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 12 Bug Janitor Service 2022-12-23 05:22:23 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 13 Bug Janitor Service 2023-01-07 05:25:08 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!