In the most recent versions of Pd-extended, you can use "~" on all
platforms for any path (I think, report a bug if not). "~hans",
"~username", etc. doesn't work tho.
On Windows, you can use envvars like %UserProfile%, so like [symbol %
UserProfile%/Desktop(. I would be nice to have this on UNIX
platforms, but I haven't found a function to do the conversion, like
Windows has.
.hc
On May 30, 2008, at 3:58 AM, Rich E wrote:
When I first posted about this, it was about the recently new
ability to do this:[symbol somedir( | [openpanel]
But this only works if "somedir" is at "$HOME/somedir" on linux and
"/usr/blahblah/pdir/somedir" on mac. So if my directly layout is
something like "~/patches/somedir", I have to explicitly write in
the message to [openpanel] "/home/myname/patches/somedir". This
will only work on my directly layout, so if it is a patch I'm going
to share, I cannot use this new feature (might I add I really like
the feature).I was only suggesting that [openpanel]/[savepanel]'s symbol
argument has the patch's current directory appended to it, unless
the "~" sign is used for home, or a full path is given. I think,
as Martin suggested, this is all handled internally with
canvas_getdir() and open_via_path().Regarding the normal operation of [openpanel]/[savepanel], i.e.
sending it a bang, I think it would be nice if the last directory
navigated to is remembered, else the $HOME.-rich
On Thu, May 29, 2008 at 2:26 PM, Frank Barknecht fbar@footils.org
wrote: Hallo, Hans-Christoph Steiner hat gesagt: // Hans-Christoph Steiner wrote:The problem here is that most people do not start Pd from the
command
line. With Pd-extended, it is now included in the standard free desktop menus (only tested on GNOME, should work on KDE), so I'll
bet
most people use that rather than the command line (I do on Ubuntu).
The HOME directory already is the default directory on Linux with Gnome/KDE/Blackbox or whatever, as it's the working directory when starting Pd from the manager. No need for any changes AFAIK.
I'm the wrong person to comment on MS-Windows or Mac, as I don't use these and don't care even the teeny-tiniest bit about what happens to Pd on these systems, but please leave it on Linux as it is the standard here. All other apps like Vim, Emacs, Gimp, Firefox use the
pwd
as default and I can't see why Pd should behave differently.If you want to confirm this yourself, try the following with the gimp:
$ cd /tmp $ gimp &
Then make a new file, select "Save" and it will give you "/tmp" as first directory choice.
Ciao
Frank Barknecht _
______footils.org__
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
There is no way to peace, peace is the way. -A.J. Muste