I asked a question earlier about viewing the history of notify-osd
using the indicator-notifications
app.
The answer was that I needed to add LOG=1
in my /etc/environment
file.
That sounded suspicious and I didn't do it because:
- It's in the global configuration file.
- You really can't know what else will be logged other than the notifications.
I browsed around and saw this question which also highlights the issue. Look specifically at this answer:
Small warning: this could be a bad idea... LOG=1 in /etc/environment makes it a system wide variable and could break stuff... God knows what reacts on LOG (ofc. they should have made it something like NOTIFYOSDLOG). Maybe for starters I would add it to bashrc for 1 user just to be sure.
My question is, how will setting LOG=1
in /etc/environment
affect the system? Which 'stuff' will be logged? Is this advisable?
EDIT
I solved the notification issue and now I'm just asking about the effects of setting LOG=1 in /etc/environment.
Look at my question above: "How will setting LOG=1
in /etc/environment
affect the system? Which 'stuff' will be logged? Is this advisable?"
You could use something more user-local like
~/.pam_environment
or~/.profile
. These are practically the same approach as/etc/environment
except they'll only affect your user. They could still affect other applications.While
~/.profile
is similar to other script files,~/.pam_environment
has a bit of a twitchy syntax that needs to be adhered to (or you'll break your login):The other approach that may work is changing whatever launches
notify-osd
to pass the environment variable along directly. In this case, it seems to be part of some cross-platform DBUS cascade controlled fromusr/share/dbus-1/services/org.freedesktop.Notifications.service
I wonder if the Exec line could be changed to read:
Or if that throws syntax wobblies:
If that works it has the obvious advantage of only affecting notify-osd (any anything it launches).
The NotifyOSD doc pages quotes:
In the Environmental Variable doc page, it has a list of common variables where "LOG" is not listed. It says:
After googling for instances where LOG may be used, nothing comes up. "NOTIFYOSDLOG" would have been a more appropriate name. The use of LOG is completely dependent on applications so it's a mystery who does and doesn't use it. Since it isn't in the common variables list, it may be just a poorly named variable.