Am 10.09.2011 15:51, schrieb Gregor Best:
> On Sat, Sep 10, 2011 at 12:56:13AM +0200, Xenia wrote:
>> [...]
>> I'm managing my autostart programs by changing my
>> /etc/xdg/awesome/rc.lua
>> as discribed in the wiki-article about the nm-applet [1].
>> [...]
> 
> FWIW, it's generally a bad idea to edit that file directly, as it gets
> overwritten on updates. 
> 
> I'd either copy the file you edited to ~/.config/awesome/rc.lua and do
> all further modifications there to make sure they don't disappear after
> an update, or do the following if you don't want to have a complete copy
> of the config (and if you want to benefit from the default config should
> it ever change to adapt to new syntax for example):
> 
>     $ mkdir -p ~/.config/awesome
>     $ cat > ~/.config/awesome <<EOF
>     dofile("/etc/xdg/awesome/rc.lua")
> 
>     awful.util.spawn("gnome-terminal -e top")
> 
> Replacing the spawned command with the one you want of course. That way,
> awesome first executes the default config (via dofile()) and then
> handles the rest of your config, e.g. by spawning something in this
> case.

If I want to create the ~/.config/awesome directory I get an error
telling me, that this directory cannot be created, because there's
already a file with the same name.
Can I simply write the lines in this file? Or can I move this file (I
could move it to ~/.config/awesome/ after I created it, but I'm not
sure, if the file will be still working – whatever it works)?

Thanks.

Xenia

-- 
To unsubscribe, send mail to [email protected].

Reply via email to