SUMMARY STEPS TO REPRODUCE 1. login & check /home/user/log/login/login.log nothing added 2. logout 3. login & check /home/user/log/logout/logout.log-> new line added to file; still nothing to login.log OBSERVED RESULT EXPECTED RESULT SOFTWARE/OS VERSIONS Windows: MacOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION
inxi -F: rob@sigma:~$ inxi -F System: Host: sigma Kernel: 4.15.0-45-generic x86_64 bits: 64 Desktop: KDE Plasma 5.15.0 Distro: KDE neon User Edition 5.15 Machine: Device: laptop System: ASUSTeK product: Strix 17 GL703GE v: 1.0 serial: N/A Mobo: ASUSTeK model: GL703GE v: 1.0 serial: N/A UEFI: American Megatrends v: GL703GE.310 date: 06/11/2018 Battery BAT1: charge: 60.3 Wh 100.0% condition: 60.3/64.4 Wh (94%) CPU: 6 core Intel Core i7-8750H (-MT-MCP-) cache: 9216 KB clock speeds: max: 4100 MHz 1: 899 MHz 2: 852 MHz 3: 863 MHz 4: 900 MHz 5: 857 MHz 6: 899 MHz 7: 815 MHz 8: 863 MHz 9: 900 MHz 10: 809 MHz 11: 865 MHz 12: 852 MHz Graphics: Card-1: Intel Device 3e9b Card-2: NVIDIA GP107M [GeForce GTX 1050 Ti Mobile] Display Server: x11 (X.Org 1.19.6 ) drivers: modesetting,nvidia (unloaded: fbdev,vesa,nouveau) Resolution: 1920x1080@120.00hz OpenGL: renderer: GeForce GTX 1050 Ti/PCIe/SSE2 version: 4.6.0 NVIDIA 390.77 Audio: Card Intel Device a348 driver: snd_hda_intel Sound: ALSA v: k4.15.0-45-generic Network: Card-1: Intel Device a370 driver: iwlwifi IF: wlo1 state: up speed: N/A duplex: N/A mac: 94:b8:6d:2a:05:f8 Card-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r8169 IF: enp2s0 state: down mac: 18:31:bf:97:1b:fd Drives: HDD Total Size: 1256.3GB (5.6% used) ID-1: /dev/sda model: Micron_1100_MTFD size: 256.1GB ID-2: /dev/sdb model: ST1000LM035 size: 1000.2GB Partition: ID-1: / size: 55G used: 9.7G (19%) fs: ext4 dev: /dev/sda5 ID-2: /home size: 119G used: 43G (38%) fs: ext4 dev: /dev/sdb2 ID-3: swap-1 size: 15.00GB used: 0.00GB (0%) fs: swap dev: /dev/sdb3 RAID: No RAID devices: /proc/mdstat, md_mod kernel module present Sensors: System Temperatures: cpu: 67.0C mobo: 27.8C gpu: 46C Fan Speeds (in rpm): cpu: 0 Info: Processes: 371 Uptime: 14 min Memory: 5133.2/15895.1MB Client: Shell (bash) inxi: 2.3.56 rob@sigma:~$
This worked under Linux Mint 17.3 KDE and Linux Mint 18.3 KDE but not under KDE Neon 5.14 nor 5.15.0. System Settings>Notifications>Plasma Workspace>login>log to a file (checked) /home/rob/log/login/login.log Each login would add a line to the file, e.g. - KNotify Thu Jan 17 14:23:26 2019: Login
System Settings>Notifications>Plasma Workspace>logout>log to a file (checked) /home/rob/log/logout/logout.log works as expected
The login sound is played directly bypassing KNotifications so it can be done in a thread in case the loading of media plugins freezes/blocks startup.
*** This bug has been marked as a duplicate of bug 352976 ***
Kai, "The problem is that KNotification is not thread-safe. Until it is, this won't work." If it will not work, I suggest you either remove the option to log to a file at login or provide a message that the option will not work until KNotification is thread safe. That way people will understand and won't be reporting bugs or duplicates.