Re: notify-send script messed up my environment

2019-05-08 Thread David Wright
On Wed 08 May 2019 at 08:33:05 (-0400), Greg Wooledge wrote: > On Tue, May 07, 2019 at 11:23:46PM +0200, Esteban L wrote: > > pid=$(pgrep -u $username nautilus) > > This may produce more than one value. > The script you've got is not designed to handle the case where pgrep finds > more than one p

Re: notify-send script messed up my environment

2019-05-08 Thread Greg Wooledge
On Tue, May 07, 2019 at 11:23:46PM +0200, Esteban L wrote: > pid=$(pgrep -u $username nautilus) This may produce more than one value. > dbus=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$pid/environ | sed > 's/DBUS_SESSION_BUS_ADDRESS=//' ) This one tries to use the value of $pid but if that variabl

Re: notify-send script messed up my environment

2019-05-07 Thread Gene Heskett
On Tuesday 07 May 2019 07:56:35 pm Dan Ritter wrote: > 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 > >

Re: notify-send script messed up my environment

2019-05-07 Thread Dan Ritter
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 an

Re: notify-send script messed up my environment

2019-05-07 Thread Gene Heskett
level). What's the saying about the "devil you > know?" =) > > Thanks again! > > > -Original Message- > From: Dan Ritter > To: Esteban L > Cc: debian-user > Subject: Re: notify-send script messed up my environment > Date: Tue, 7 May 2019

Re: notify-send script messed up my environment

2019-05-07 Thread Esteban L
To: Esteban L Cc: debian-user Subject: Re: notify-send script messed up my environment Date: Tue, 7 May 2019 18:12:01 -0400 Esteban L wrote:  > I stepped in poo, and broke a cardinal sin, trying a script that I > didn't 100% understand. Now my environment is a little bit jacked. &g

Re: notify-send script messed up my environment

2019-05-07 Thread Dan Ritter
Esteban L wrote: > I stepped in poo, and broke a cardinal sin, trying a script that I > didn't 100% understand. Now my environment is a little bit jacked. Not > bad, still generally functioning. > > I was trying to get notifications to run from the command line, namely > crontab. No easy task, a

notify-send script messed up my environment

2019-05-07 Thread Esteban L
Hello, I stepped in poo, and broke a cardinal sin, trying a script that I didn't 100% understand. Now my environment is a little bit jacked. Not bad, still generally functioning. I was trying to get notifications to run from the command line, namely crontab. No easy task, at least, not as easy a