Hi,

I've been wondering why my emacs server process did not see the 
$GPG_AGENT_INFO variable: I called my autostarts from my .Xresources file 
which gets executed (on Debian) before gpg-agent gets started...

I tried the PID way of autostarting[1] but it did not work. I don't know why.
[1] http://awesome.naquadah.org/wiki/Autostart#PID_way

Since I don't like to touch the filesystem for every tiny bit I had the idea 
to set an X resource property after the autorun was done:

<code>
#!/bin/sh

PROP=autostart.wasrun
HASPROP=$(xrdb -query|grep $PROP)

if [ "$HASPROP" != "" ]
then
  exit 0;
fi

TEMPLATE=xsession-$USER-$PPID-XXX
TEMPFILE=$(mktemp --tmpdir $TEMPLATE)

echo "logging to $TEMPFILE"

echo "$PROP: on" | xrdb -merge

( $HOME/bin/dex -v -a 2>&1 1>$TEMPFILE ) &
</code>

I have no deeper knowledge on X resources so I'd be happy if somebody would 
like to clean this up and post it to the wiki.

- Wouldn't it be nice if awesome lua would have functions to manipulate and 
query X resources?

- Wouldn't it be nice if awesome would by itself already set an X resource 
property once it has completed the processing of its configuration? Later 
restarts could then check whether this property is already set.

- Wouldn't it be nice if there'd actually be some free desktop standard 
property to be set once a window manager has fully started up?

Regards,

Thomas Koch, http://www.koch.ro

-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.

Reply via email to