[openbox] ~me versus /home/meme

Mikael Magnusson mikachu at gmail.com
Tue Aug 25 06:15:23 EDT 2009


On Tue, 25 Aug 2009, Johan Vromans wrote:

> Mikael Magnusson <mikachu at gmail.com> writes:
>
>>>  myapp --config=~/.appconfig
>>
>> Since that doesn't even work in bash, I think I'm okay.
>
> The point I wanted to make is that whatever you do, there's always
> something that may break.
>
> Personally, I think that tilde expansion is meaningfull in interactive
> context and should not be used in scripts and files, since there's a
> better and more general mechanism available: $HOME.

But of course, $-variables are a shell mechanism and openbox isn't a 
shell, so that won't work. If you want to write a script, generally you 
should use <command>sh -c 'your script here'</command>, or better, write 
it and put it in ~/bin and just call it from openbox.

--
Mikael Magnusson


More information about the openbox mailing list