[maemo-developers] How to get an user friendly path description ?

From: Julius Luukko julle.luukko at quicknet.inet.fi
Date: Sat Oct 17 17:42:22 EEST 2009
Sat, 17 Oct 2009 10:06:25 +0200
Fred Lefévère-Laoide <Fred at Lefevere-Laoide.net> kirjoitti:

> Hi,
> 
> Is there a way to get a User friendly description for a path ?
> 
> ie see "N900 Documents/toto" instead of
> "/home/user/MyDocsDir/.documents/toto" ?
> 
> Thanks
> 
> Fred
> 
> PS : Faheem already proposed the baseName glib function but it only
> gives the name of the file ...

Is it really necessary to show the whole path? Instead use the baseName
and use file save/load dialogs to actually show/change the whole path.
The user would cancel the dialog if happy with the path.

-- 
Julius
More information about the maemo-developers mailing list