[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: KStandardDirs
From:       "Jeroen Wijnhout" <wijnhout () science ! uva ! nl>
Date:       2003-06-05 18:43:17
[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);
>    }
> }
>

I don't think it is right to assume that home directories have the
format /home/username, it can be anything really. Right now I'm working
in a system where the home directory is
/afs/ictp/home/w/wijnhout

Jeroen


 
>> 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