Hi Carsten, On Fri, Sep 20, 2013 at 12:49:43PM +0200, Carsten Dominik wrote: > > On Sep 19, 2013, at 4:25 PM, Suvayu Ali <fatkasuvayu+li...@gmail.com> wrote: > > > I have some good news (sort of). We can force generic open by calling > > xdg-open like this[1]: > > > > DE=generic xdg-open /path/to/file > > Hi Suvayu, > > interesting! How does this work? Is this setting an environment variable DE > before it is run? > The syntax looks unfamiliar to me.
Yes, it is setting the DE variable (internal to xdg-open) to generic. You can temporarily alter the environment of a command by prefixing it with `var=value '. The cool thing is the current shell does not retain the temporary value. Here is an example: $ var=foo $ var=bar sh -c 'echo $var' bar $ echo $var foo :) -- Suvayu Open source is the future. It sets us free.