Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #208381

Re: notify-send script messed up my environment

From Dan Ritter <dsr@randomstring.org>
Newsgroups linux.debian.user
Subject Re: notify-send script messed up my environment
Date 2019-05-08 02:00 +0200
Message-ID <xVia5-1yc-7@gated-at.bofh.it> (permalink)
References <xVfOW-fA-5@gated-at.bofh.it> <xVgBj-LU-3@gated-at.bofh.it> <xVhxn-1kX-1@gated-at.bofh.it> <xVi0p-1uG-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Gene Heskett wrote: 
> I've had a problem, I think with dbus that smells a bit like this.
> 
> I've a bash script that sends  inotifywait to watch the mail dir in /var, 
> and when one of the files is closed after writing and incoming mail to 
> it, returns to my script with the name of the file and sends kmail a 
> dbus message to go get mail $name. At the same time it relaunches 
> inotifywait to resume the watch. kmail goes and gets the mail, zeroing 
> out the contents of /var/mail/$name. But on wheezy that got iffy after 
> 20+ days of uptime and I had to reboot to "clean" house or whatever was 
> muching things up. In that 20 days, dbus probably handled 350 to 600 
> cycles a day.  Now I haven't enough uptime on 64 bit stretch to test it 
> yet.

You're watching /var/mail/gheskett for new mail?

Kmail can probably do that by itself.

https://docs.kde.org/stable5/en/pim/kmail2/configure-appearance.html#configure-appearance-systemtray

says 

If you enable the system tray icon then a small KMail icon
with the number of unread messages will be shown in the system
tray. You can enable KMail's system tray icon with Enable system
tray icon, and with System Tray Mode you can specify whether the
tray icon should always be shown or only if you have unread
messages.

If the icon is visible then you can hide KMail's main window by
clicking on the icon or by clicking on the window close button.
By clicking on the icon you can make KMail's main window visible
again. If you click on the icon with the right mousebutton then
you get a menu with a few useful commands. You can check for new
mail, create a new message or quit KMail. Additionally, there is
the entry New Messages In which lists all folders containing
unread messages. If you choose one of those folders then this
folder will be selected in KMail's main window. 

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

notify-send script messed up my environment Esteban L <esteban@little-beak.com> - 2019-05-07 23:30 +0200
  Re: notify-send script messed up my environment Dan Ritter <dsr@randomstring.org> - 2019-05-08 00:20 +0200
    Re: notify-send script messed up my environment Esteban L <esteban@little-beak.com> - 2019-05-08 01:20 +0200
      Re: notify-send script messed up my environment Gene Heskett <gheskett@shentel.net> - 2019-05-08 01:50 +0200
        Re: notify-send script messed up my environment Dan Ritter <dsr@randomstring.org> - 2019-05-08 02:00 +0200
          Re: notify-send script messed up my environment Gene Heskett <gheskett@shentel.net> - 2019-05-08 03:50 +0200
  Re: notify-send script messed up my environment Greg Wooledge <wooledg@eeg.ccf.org> - 2019-05-08 14:40 +0200
    Re: notify-send script messed up my environment David Wright <deblis@lionunicorn.co.uk> - 2019-05-08 18:40 +0200

csiph-web