On Sun, Apr 21, 2019 at 06:50:06AM -0700, [email protected] wrote:
> Hi all,
> 
> I struggle to get something that's working in Q3.2 also in Qubes4:
> 
> - I need to display message from AppVm on the screen (via notify-send in 
> dom0) and do it via qubes-rpc executed in AppVm "storage". rpc procedure is 
> named 'storage.log'
> - allow policy in dom0:
>   > cat /etc/qubes-rpc/policy/storage.log:
>   > storage dom0 allow
>   > $anyvm $anyvm deny
> - procedure:
>   > cat /etc/qubes-rpc/storage.log
>   > #!/usr/bin/bash
>   > 
>   > read message
>   > /usr/bin/notify-send "$message"
> 
> RPC is called this way in appvm 'storage':
>   > echo 'message from vm'|qrexec-client-vm dom0 storage.log
> 
> What happens:
> - In Q3.2 this works since years
> - In Q4 action is executed, but nothing is displayed on screen. Action is 
> actually executed-in journalctl I see 'storage.log' is allowed, and if I add 
> 'echo $message|systemd-cat' that message is logged also.
> 
> 
> - If its run in dom0, message is displayed on the screen:
>   > echo 'dom0 message'|/etc/qubes-rpc/storage.log
> 
> 
> It seems like /usr/bin/notify-send does nothing when invoked via RPC.
> 
> Any ideas?
> 

Can I ask why you want to do this?
Why dont you just call notify-send in the qube? 
What is the advantage of using a qubes-rpc call here?

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20190422020659.u7d5by5wffuzmy4m%40thirdeyesecurity.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to