Announcement

Collapse
No announcement yet.

KDialog Notifications on the LOCK SCREEN? ? ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    KDialog Notifications on the LOCK SCREEN? ? ?

    I have a script which runs through checks of various things via various tests.. and on errors pops up a KDialog box, does some alerting via aplay etc...

    All this is great..

    The "bug or glitch" I've got is once it goes into the lock screen you have to unlock to see the what the alert is..

    HOLD IT! Before any one says well duh "Security!" I would agree if this was something at work.. this is at home... and me, a senior and the cat are NOT a security risk!

    None of this would be PII, etc.. its basically an alert that X, Y, Z is not responding... to check..

    The lock screen can have something about stuff playing via VLC or what not... so there is some API? dbus? Something that passes this data along..

    So is this API? dbus? x? documentated some place to replace that "playing" data with MY NOTIFICATIONS instead or in addition to it?

    Thanks!



    #2
    Not a direct answer to your issue, but, if it is only you and your cat, and nothing is PII anyway, why have the Lock Screen activated? Don't use it.

    Or, configure Screen Locking to never require a password.

    System Settings > Screen Locking > Delay before password required: Never require password
    Last edited by Snowhog; Nov 08, 2026, 01:32 PM.
    Slava Ukraini! πŸ‡ΊπŸ‡¦
    Windows no longer obstruct my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes​

    Comment


      #3
      The media information you see on the lock screen is provided through MPRIS (the standard D-Bus media-player interface). It isn't a general-purpose area where applications can send arbitrary messages or notifications.

      A KDialog window is part of your normal desktop session, so when the screen is locked it will remain hidden behind the lock screen until you unlock.

      I don't think there is a supported way to display arbitrary KDialog messages on the KDE lock screen.
      The media information shown there is handled separately through MPRIS (a D-Bus interface specifically for media players), rather than being a general notification API that applications can use.
      The screen locker deliberately keeps normal desktop windows and notifications behind the lock screen. So even if your alert contains nothing sensitive, Plasma has no way to know that.
      You could perhaps look at logging the alerts somewhere, or using an audible alert as you are already doing, but I wouldn't expect a KDialog box to be visible until the session is unlocked.

      The key distinction is MPRIS media metadata β‰  general notifications. So the idea of "replacing the playing data with my notifications" probably isn't something Plasma provides.
      ​
      ▁ β–‚ β–„ β–… β–† β–‡ β–ˆ α„‚IПЦX FΣ¨Π― α„‚IFΞ£ β–ˆ β–‡ β–† β–… β–„ β–‚ ▁

      Comment


        #4
        Originally posted by Snowhog View Post
        Not a direct answer to your issue, but, if it is only you and your cat, and nothing is PII anyway, why have the Lock Screen activated? Don't use it.

        Or, configure Screen Locking to never require a password.

        System Settings > Screen Locking > Delay before password required: Never require password
        Thanks but, NONE OF THAT is EVER HAPPENING, Period.

        All systems are full disk encryption, full passwords required to login, and will always have a password to unlock... Wouldn't matter if I was the only person here.. nope, ain't happening.

        Comment


          #5
          Originally posted by die.boer View Post
          The media information you see on the lock screen is provided through MPRIS (the standard D-Bus media-player interface). It isn't a general-purpose area where applications can send arbitrary messages or notifications.

          A KDialog window is part of your normal desktop session, so when the screen is locked it will remain hidden behind the lock screen until you unlock.

          I don't think there is a supported way to display arbitrary KDialog messages on the KDE lock screen.
          The media information shown there is handled separately through MPRIS (a D-Bus interface specifically for media players), rather than being a general notification API that applications can use.
          The screen locker deliberately keeps normal desktop windows and notifications behind the lock screen. So even if your alert contains nothing sensitive, KDE has no way to know that.

          You could perhaps look at logging the alerts somewhere, or using an audible alert as you are already doing, but I wouldn't expect a KDialog box to be visible until the session is unlocked.

          The key distinction is MPRIS media metadata β‰  general notifications. So the idea of "replacing the playing data with my notifications" probably isn't something KDE provides.
          ​
          I wouldn't expect a lock screen to show a KDialog window etc.. but based on changing various config files, ie: correct time formatting, so possibly there is something to send data to that... which is....

          Well now that I know what is doing this, and looking at this MPRIS, it PROBABLY COULD B E HIJACKED to do this, but its way more complicated than I want to deal with. Or at least more than dbus-send via BASH allows at least from my very very very quick cursory look. And it seems that if gwenview or VLC etc. are already running, one of these has already taken over the this connection. So you'd have to kill these off, which is fine, they leak info, to ensure the alert script would have access... so this is getting more complicated etc..

          Honestly that MPRIS stuff leaks more information than I like..as it is..

          I already have logging and audible alerts, hence how I know to go look at the alert.. for now I guess I am going to have to look at notify.sh or something... and something else to be a screen...

          This seems like and area for enhancement to me, but alas it would be in a future version, and thus I'll never be able to use it.

          Thanks for the info.

          Comment

          Users Viewing This Topic

          Collapse

          There are 0 users viewing this topic.

          Working...
          X