[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: KStandardDirs
From: André Wöbbeking <Woebbeking () onlinehome ! de>
Date: 2003-06-05 18:52:04
[Download RAW message or body]
> yes Andras, you're right that's what you get out of this code.
> But what you should get is /home/foo/kde
> This is a bug, a fix whould be:
>
> static void fixHomeDir(QString &dir)
> {
> if (dir[0] == '~' && dir[1] == '/')
> {
> dir = QDir::homeDirPath() + dir.mid(1);
> }
> else
> {
> dir = "/home/" + dir.mid(1);
> }
> }
Yes, something like that, but ~ don't need to be /home.
André
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic