Thread: [Tuxpaint-devel] savedir option bug
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
|
From: Francis G. <fra...@re...> - 2008-05-29 11:56:43
|
Hi, There is a bug with the savedir option, when specified in the configuration file. Environment variables are not replaced by their values. See : https://bugs.launchpad.net/ubuntu/+source/tuxpaint/+bug/195868 I did a patch to fix this on Linux, but the function used is not available for other plateforms. Does someone know how to do this on Windows and MacOS? At least, I think that the patch for Linux should be merged to fix the issue for this plateform. http://launchpadlibrarian.net/12727159/10_expand_user_home.dpatch Cheer, Francis -- Francis Giraldeau, Ing jr. Analyste Infrastructure Directeur Qualité Téléphone : (819) 780-8955 poste 1111 Sans frais : 1-800-996-8955 Télécopieur : (819) 780-8871 Revolution Linux Inc. 2100 King ouest - bureau 260 Sherbrooke (Québec) J1J 2E8 CANADA http://www.revolutionlinux.com Toutes les opinions et les prises de position exprimees dans ce courriel sont celles de son auteur et ne representent pas necessairement celles de Revolution Linux Any views and opinions expressed in this email are solely those of the author and do not necessarily represent those of Revolution Linux |
|
From: Bill K. <nb...@so...> - 2008-05-29 16:27:56
|
On Thu, May 29, 2008 at 07:56:35AM -0400, Francis Giraldeau wrote: > Hi, > > There is a bug with the savedir option, when specified in the > configuration file. Environment variables are not replaced by their > values. See : > > https://bugs.launchpad.net/ubuntu/+source/tuxpaint/+bug/195868 > > I did a patch to fix this on Linux, but the function used is not > available for other plateforms. Does someone know how to do this on > Windows and MacOS? Yes, I'd like to know, as well. :) > At least, I think that the patch for Linux should be merged to fix the > issue for this plateform. > > http://launchpadlibrarian.net/12727159/10_expand_user_home.dpatch Indeed. It's mentioned here: http://sourceforge.net/tracker/index.php?func=detail&aid=1819737&group_id=66938&atid=516298 I'll try to remember to get to it soon, thanls. -bill! |
|
From: Francis G. <fra...@re...> - 2008-10-08 16:13:19
|
Hi, Is there any solution that have been found to expand environment variables from "savedir" options when defined in the config file for other platform than Linux? I saw that replace_tilde does the job for $HOME, but how do they do to change the path on other platform (since on Windows, $HOME is not defined) Have a nice day, Francis Bill Kendrick a écrit : > On Thu, May 29, 2008 at 07:56:35AM -0400, Francis Giraldeau wrote: > >> Hi, >> >> There is a bug with the savedir option, when specified in the >> configuration file. Environment variables are not replaced by their >> values. See : >> >> https://bugs.launchpad.net/ubuntu/+source/tuxpaint/+bug/195868 >> >> I did a patch to fix this on Linux, but the function used is not >> available for other plateforms. Does someone know how to do this on >> Windows and MacOS? >> > > Yes, I'd like to know, as well. :) > > > >> At least, I think that the patch for Linux should be merged to fix the >> issue for this plateform. >> >> http://launchpadlibrarian.net/12727159/10_expand_user_home.dpatch >> > > Indeed. It's mentioned here: > > http://sourceforge.net/tracker/index.php?func=detail&aid=1819737&group_id=66938&atid=516298 > > I'll try to remember to get to it soon, thanls. > > -bill! > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Tuxpaint-devel mailing list > Tux...@li... > https://lists.sourceforge.net/lists/listinfo/tuxpaint-devel > -- Francis Giraldeau, Ing jr. Analyste Infrastructure Directeur Qualité Téléphone : (819) 780-8955 poste 1111 Sans frais : 1-800-996-8955 Télécopieur : (819) 780-8871 Revolution Linux Inc. 2100 King ouest - bureau 260 Sherbrooke (Québec) J1J 2E8 CANADA http://www.revolutionlinux.com Toutes les opinions et les prises de position exprimees dans ce courriel sont celles de son auteur et ne representent pas necessairement celles de Revolution Linux Any views and opinions expressed in this email are solely those of the author and do not necessarily represent those of Revolution Linux |
|
From: Bill K. <nb...@so...> - 2008-10-08 18:42:54
|
On Wed, Oct 08, 2008 at 11:13:06AM -0400, Francis Giraldeau wrote: > Hi, > > Is there any solution that have been found to expand environment > variables from "savedir" options when defined in the config file for > other platform than Linux? > > I saw that replace_tilde does the job for $HOME, but how do they do to > change the path on other platform (since on Windows, $HOME is not defined) Actually, replace_tilde only does the job for "~". And only for the current user. (i.e., you can't do "~someotheruser/tuxpaint/" like you can in a shell) I'm reminded of the 'wordexp()' patch, which I suppose I should apply, just to get the ball rolling for Linux. What do Windows programmers use? And Mac? Does wordexp() work on Mac? -bill! |
|
From: Bill K. <nb...@so...> - 2008-10-08 19:47:32
|
On Wed, Oct 08, 2008 at 11:42:42AM -0700, Bill Kendrick wrote: > I'm reminded of the 'wordexp()' patch, which I suppose I should apply, just > to get the ball rolling for Linux. I've implemented this on Linux. I need to also implement it for printcommand and altprintcommand, I think. Just throwing the string at wordexp() doesn't cut it, though... I need to parse it on a per-arg-basis (i.e., split it based on whitespace, wordexp() each word, and wrap it back together). Or am I overthinking this? -- -bill! "Tux Paint" - free children's drawing software for Windows / Mac OS X / Linux! Download it today! http://www.tuxpaint.org/ |
|
From: Martin F. <mf...@gm...> - 2008-10-09 04:21:07
|
On 8-Oct-08, at 12:42 PM, Bill Kendrick wrote: > > What do Windows programmers use? And Mac? Does wordexp() work on > Mac? Yes, wordexp() resides in the BSD layer on Mac OS X, at least since 10.4, but quite likely earlier as well. Martin |
|
From: Bill K. <nb...@so...> - 2008-10-09 18:29:38
|
On Wed, Oct 08, 2008 at 10:20:54PM -0600, Martin Fuhrer wrote: > > On 8-Oct-08, at 12:42 PM, Bill Kendrick wrote: > > > > What do Windows programmers use? And Mac? Does wordexp() work on > > Mac? > > Yes, wordexp() resides in the BSD layer on Mac OS X, at least since > 10.4, but quite likely earlier as well. So right now the wordexp() stuff is wrapped in "#ifdef __linux__". I suppose we should make that something like "#if defined(__linux__) || defined(__APPLE__)", then? (Would we want any kind of "MAC_OS_X_VERSION_10_4" or "__APPLE_10_4_x__" tests, too?) Martin, if you've got a sec, can you give it a whirl? (Feel free to commit to CVS if it seems to work ;) ) Delegatin, -- -bill! "Tux Paint" - free children's drawing software for Windows / Mac OS X / Linux! Download it today! http://www.tuxpaint.org/ |