After a research on the topic, I found that gnulibc has a function to
substitute the environment variables of a string : wordexp

http://www.opengroup.org/onlinepubs/009695399/functions/wordexp.html

But this POSIX function is not available in MinGW, which is used for the
compilation of tuxpaint for Windows.

>From : http://www.gnu.org/software/gnulib/manual/html_node/wordexp.html

===

Portability problems not fixed by Gnulib:

    * This function is missing on some platforms: MacOS X 10.3, OpenBSD
3.8, Cygwin, mingw, Interix 3.5, BeOS.

===

So, I did update the patch with #ifdef __linux__, to make sure that
other plateform are not affected.



** Attachment added: "Updated patch with wordexp for linux"
   http://launchpadlibrarian.net/12727159/10_expand_user_home.dpatch

-- 
savedir option doesn't work as expected
https://bugs.launchpad.net/bugs/195868
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to