Hi Rainer,
On Wed, Feb 06, 2013 at 04:09:48PM +0100, Rainer M Krug wrote:
> I am using dex for autostart applications and I have the following in my
> rc.lua:
>
> awful.util.spawn_with_shell("gnome-settings-daemon && dex -a -e Awesome")
>
> Now I have two problems:
>
> 1) When I change the screen setup via e.g. arandr / xrandr, awesome is
> restarted and consequently
> dex is executed as well. This causes multiple instances of e.g. skype and
> other programs to run
> which are started via sutostart and dex. Is there a way that I can tell
> awesome to only execute
> dex, when it hasn't been executed before? Effectively a run-once for dex, but
> as dex is not
> running anymore (and only doing the autostart), the approaches described in
> the wiki wont work.
> Any suggestions?Maybe run dex just from the ~/.Xsession and not from the awesome-config? Or put your call to dex into a script that checks the value of /proc/sys/kernel/random/boot_id against a .cache/awesome/dex-last-boot-uuid and if they match don't start it. > > 2) in the autostart I have nitrogen for setting the background of my dual > monitor setup > independently fr each monitor. Now gnome-settings-daemon is setting the > background as well, and > most of the time gnome-settings-daemon has finished setting the background > before nitrogen is > called and everything is fine. But sometimes this is not the case, and > gnome-settings-daemon is > resetting the desktop. Is there a way that I can make sure that nirtogen is > executed after > gnome-settings-daemon is completely started? Well, I think there was a setting to prevent gnome-settings-daemon from drawing the wallpaper. Gconf-Key: /desktop/gnome/background/draw_background (accessible with gconf-editor) Dconf-Key: org.gnome.desktop.background (accessible with dconf-editor) Both are bools that you just need to toggle so gnome-settings-daemon stops if forever. Regards, Andre -- Andre Klärner
smime.p7s
Description: S/MIME cryptographic signature
