Re: A few requests...
- From: <tpgww@xxxxxxxxxxx>
- To: emelfm2@xxxxxxxxxxxxx
- Date: Thu, 21 Aug 2008 10:44:50 +1000
On Wed, 20 Aug 2008 19:25:41 -0400
Grégory SCHMITT <gy.schmitt@xxxxxxxxx> wrote:
> ----- Original Message -----
> > Date: Mon, 18 Aug 2008 22:36:36 +1000
> > De: <tpgww@xxxxxxxxxxx>
> > À: emelfm2@xxxxxxxxxxxxx
> > Sujet: Re: A few requests...
>
> > On Sun, 17 Aug 2008 20:21:36 -0400
> > Grégory SCHMITT <gy.schmitt@xxxxxxxxx> wrote:
>
> > > > > - Would it be possible to have an option (to be specified by the
> > > > > user, in the config panel) that would define a command to be run
> > > > > after mounting/unmounting devices is done (and returns 0) ?
> > > > Create an alias ?
> > >
> > > I'm rather against creating an alias for critical commands such as
> > > mount and umount, especially since my HAL manager and others rely on
> > > these commands. Also, the command I intend to use uses X, and I
> > > don't want mount to fail or return an error message when X is not
> > > started. So I guess an alias isn't really an appropriate solution
> > > for me.
> > I meant an e2 alias, not a system-wide one.
> >
> > I'm not sure what scenario you're describing. No X == no emelFM2.
>
> I'm now using an alias for umount that does popup a nice notification
> that the device is now ready to be removed (emelfm2 svn rev. 1105).
>
> I defined the command "umount" to be replaced by
>
> umount \2 && notify-send -u critical -t 4000 'Ivman' 'Can remove'
>
> as soon as umount is done and returns 0. However, the double ampersand
> operator seems to confuse emelfm2 (an OR operator is fine, however, as
> well as the semi-colon). I looked into the doc (the ACTIONS file) and
> didn't see anything relevant. Any idea ?
Internal command parsing and processing is nowhere near as extensive as in a
real shell. So try running in external shell (prepend ">" character to your
alias).
Svn code now includes experimental %e %%e %E %%E if E2_BADQUOTES is defined.
These macros are intended to work like corresponding f macros, but with
escaping of embedded char(s) which match the quotes. If this turns out to work
properly, the f macros should probably be changed to work like this, and the e
macros go away again.
Regards
Tom
--
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.
- Follow-Ups:
- Re: A few requests...
- From: Grégory SCHMITT
- References:
- A few requests...
- From: Grégory SCHMITT
- Re: A few requests...
- From: tpgww
- Re: A few requests...
- From: Grégory SCHMITT
- Re: A few requests...
- From: tpgww
- Re: A few requests...
- From: Grégory SCHMITT
Other related posts:
- » A few requests...
- » Re: A few requests...
- » Re: A few requests...
- » Re: A few requests...
- » Re: A few requests...
- » Re: A few requests...
- » Re: A few requests...
- Re: A few requests...
- From: Grégory SCHMITT
- A few requests...
- From: Grégory SCHMITT
- Re: A few requests...
- From: tpgww
- Re: A few requests...
- From: Grégory SCHMITT
- Re: A few requests...
- From: tpgww
- Re: A few requests...
- From: Grégory SCHMITT