-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/02/13 20:15, Andre Kl¦rner wrote:
> Hi Rainer,
> 

Hi Andre

> 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?

I sometimes use other WN - so it won't work for me. In addition, I prefer to 
have the whole
awesome config together in one place.


> 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.

This sounds interesting. But I have to write the value 
.cache/awesome/dex-last-boot-uuid myself -
correct? I think I will try this approach.

> 
>> 
>> 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.

OK - done and working. Perfect.

I changed both - but I assume one is gnome3 and the other an older version - 
correct?

Thanks a lot,

Rainer
> 
> Regards, Andre
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRE2h+AAoJENvXNx4PUvmCC1IIAO0JovpYHxu1HlCOYQIe6tvy
b5iHebxYlMo1y6vJp9AbeZyOWDP54ZxoT1vJt7FIWtSfqk9VP/Id4obu9bATSpxW
TwvqJyuFCNdAi4L9lH5si0KUgrg75B8W2NOpTNgjoIuE4qSGkNoGYR/n7SluiEhD
F3n7baFBC5YrBa+BSZrZH/cjZrGngBYXOYwH/ZKqg0MvU0XCcga/vToNMwt4UZBu
uDSHA6BsyoX3c1KNt297nffPKoUZ+E3nyHLD58D5++5jlGYCMc60f1BpsOFh9/Zv
+emZ9QfhEg5cW+Ry1bM06QaagVxElNRiixgN9P3zUXEFqFsljiL8Y7ZnpdgVS98=
=e2Ya
-----END PGP SIGNATURE-----


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

Reply via email to