[clamav-users] Question on GUI notifications of virus detection

Michael D. clamav at cosis.dk
Mon Jun 19 18:44:53 UTC 2017


On 06/19/2017 07:49 PM, Bryan C. Everly wrote:
> Hi all,
>
> I am running Arch Linux with ClamAV 0.99.2 on a Thinkpad X1 Carbon
> (Skylake) using xorg and Gnome3.  Anyhow, I have the ScanOnAccess
> stuff configured to where the system will detect any activity on my
> EICAR test file.
>
> My /opt/clamav-utils/clamd-response file is where I'm running into
> trouble.  I'd like to use it to trigger a GUI alert on my screen;
Hi Bryan,

The problem isn't with ClamAV, it's the difference in sessions between a 
daemon and a user.

A user that is logged in, is in a shell with lot's of environment 
variables set, whereas a daemon is running in a bare-minimum environment.

You probably need to set the variable DBUS_SESSION_BUS_ADDRESS in your 
script as described here:

https://askubuntu.com/questions/298608/notify-send-doesnt-work-from-crontab

Best regards
   Michael



More information about the clamav-users mailing list