Re: [Tracker] Proposed patch: use '~' in the config file



On Thu, 2007-03-08 at 00:43 +0100, lbell wrote:
This is a proposed patch to convert paths beginning with ~ character to the real home dir path, so you can 
write ~/Documents instead of /home/MyUser/Documents in the configuration file.
I used a brute force check with '~' character (maybe not so portable) and modified the original data while 
loading.

Regards

Luca Bellonda

thanks but would it not be simpler to use the posix realpath? (man
realpath for info)

I am not sure if it converts "~" for us as well as allowing relative
paths?

feel free to resubmit patch using realpath if it does. If not can you
also include realpath anyhow


jamie.






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]