Re: panes.switch and working dir
- From: Giancarlo Bianchi <giancarlo.b@xxxxxxxxx>
- To: emelfm2@xxxxxxxxxxxxx
- Date: Wed, 28 Jan 2009 01:33:53 +0100
tpgww@xxxxxxxxxxx ha scritto:
The panes.switch process includes a call to library-function chdir(). Here the
CWD does change, and there's been no change to the relevant code since 0.5
release. What happens if you
panes.switch; pwd; file-roller -h %P; panes.switch?
(%P is effectively the same as %D/%F)
Didn't know, thanks...
I already tried with "cd %D", but the console reports "No item selected
Failed to expand macros". pwd doesn't affect anything, maybe because it
actually only prints working directory. It wouldn't have worked anyway,
given what I say below.
I've just tested file-roller a bit, it seems that the -h option does not work as we might expect. Even the
--default-dir=... option does not help.
It seems file-roller inherits the working directory from the actual file
location (doing file-roller -h ../dir/file.zip extracts it in ../dir and
not 'here'), you mean that? That's the point! panes.switch works perfectly!
Yes, it has a somewhat illogically strict behaviour (just like many
GNOME apps? :P), but I find it useful, because it manages a lot of
different archive formats at one time. It also uses Gtk, and my (very
lightweight) desktop is strongly Gtk based. Ark is way more rational,
e.g. it has a dedicated --guess-name option to extract in a subfolder
with the archive name, while file-roller can do this only via the
--extract-here option. I would prefer not to start all the KDE stuff to
only extract an archive... Xarchiver doesn't do what I want.
Regards
Tom
Thanks,
Giancarlo
--
Users can unsubscribe from the list by sending email to
emelfm2-request@xxxxxxxxxxxxx with 'unsubscribe' in the subject field or by
logging into the web interface.
Other related posts: