A little more flexible ( though more complicated ) : get the values of
DISPLAY and XAUTHORITY from the environment of the awesome process :

awesome_pid="$(pgrep awesome)"
eval $(tr '\0' '\n' < /proc/$awesome_pid/environ | sed -nr
'/^(DISPLAY|XAUTHORITY)=/p' )
notify-send foo

2012/2/29 stardiviner <numbch...@gmail.com>:
> => On [2012-02-28 11:28:09 +0100]:
>  Daniel Martí Said:
>>
>>
>> >My local hack to make dbus find itself:
>> >
>> >XAUTHORITY=/home/psychon/.Xauthority DISPLAY=:0 notify-send foo
>> >
>> >Uli
>>
>> I use that too, with an if statement comfirming I'm the user and not root 
>> via `whoami`
> Thanks, solved.
>>
>>
>> --
>> To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.
>>
>
> --
>>> stardiviner <<  =>GPG: 5D9F64D8 Twitter: @numbchild
> http://stardiviner.dyndns-blog.com/author.html



-- 
Vivian Brégier
http://www.are-ata.org/Vivian.vcf

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

Reply via email to