Registered Member
|
I have a rexx routine I like to run at login. A lady's voice tells me the date and time of login. I set up the command in
System Settings > Notifications > Event Source pull down > Plasma Workspace > login Under login I enter the command: /home/rob/Dropbox/shared_rcss_complex/create_sound_file.sh The script calls a rexx routine by the same name and works fine in Konsole and works if invoked under System Settings>Startup and Shutdown as a script file at startup. Under Event Notifications and Actions, Plasma Workspace, Login I have checked log to a file. Nothing is logged. If I check Play a Sound, Oxygen-Sys-Log-In-Short.ogg is played at login. In summary Play a Sound works, Log to a File does not, and the sound script does not play sound but it does play the sound if invoked as a startup script. Can anyone suggest how to get this working so I can get a log file created? It worked fine under Linux Mint 17.3 KDE and Linux Mint 18.3 KDE but not KDE Neon 5.14-5. inxi -F:
I realize this is kind of a nit, but it works in a different distribution and KDE is my go to environment because it is so customizable.
Migrated from Linux Mint 17.3/18.3 KDE to KDE neon User Edition.
|
Registered Member
|
I see that all the system settings notifications are stored in
/home/user/.config/plasma_workspace.notifyrc I added a simple Kdialog popup, a sound, and a log to file request to the gui for a logout-cancel and it loaded the following lines to that file:
However when I cancel a logout nothing happens. Here's the contents of the entire file:
The exitkde event works fine. It plays a sound and logs the event properly. Is it possible the Execute= is not working? In Plasma 4 the gui accepted a command including arguments. In Plasma 5 the gui requires a path and does not accept arguments, a step backward in my view. It caused me to have to write a simple .sh script to invoke rexx. Sorry, English is my first language.
Migrated from Linux Mint 17.3/18.3 KDE to KDE neon User Edition.
|
Registered Member
|
Today I was asked to this exact thing to notify the company head when a particular user logs in/out cleanmaster. I suck at scripting; what changes would need to be made for this to also report logoff?
Last edited by amrose on Wed Mar 06, 2019 5:57 am, edited 2 times in total.
|
Registered Member
|
System Settings > Notifications > Event Source pull down > Plasma Workspace > logout Check the box on Log to a file line and provide a location for the log file. No script needed.
Migrated from Linux Mint 17.3/18.3 KDE to KDE neon User Edition.
|
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]