Forum > LCL

popupnotifier and Qt5

(1/2) > >>

linuxer:
Hi,

I tried to build and run one of my projects, from GTK2 to Qt5 LCLWidgetType, and I am facing troubles with popupnotifiers, either not showing, or showing and freeze on screen, or showing and closing unexpectedly.

I am using FPC 3.3.1, on Linux.

Any help, in this regard, will be appreciated.

dbannon:
You don't mention what OS you are using, but tag line might indicate Linux.

libnotify does a much nicer job on Linux than popupnotify.  I have a unit that decides, depending on OS, to use either TPopupNotify or libnotify.  Works fine on Linux, Windows and Mac. Does need multithreading ....

notifier.pas in project listed below.

Davo

linuxer:
Thanks for your response,

I use Linux as it is stipulated on both my post and my tagline, so it is Artix Linux.

Will check libnotify and notifier.pas, but was considering an easier way, if exists, though.

Regards

linuxer:
Thanks for sharing.  :)

Works ootb in all current Linux DEs.

Regards

linuxer:
Hi dbannon,

Gnome polkit (and pkexec) delete environment variables DISPLAY and XAUTHORITY that are needed for X access and notify-send fails, so it cannot access the display, therefor, no notifications are been delivered to the user.

My app, needs privileges to run on root level, so how can I implement it to solve the above issue?

I start my app as follows


--- Code: --- pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY QT_QPA_PLATFORM=xcb QT_STYLE_OVERRIDE=kvantum <command> 
--- End code ---

Regards

Navigation

[0] Message Index

[#] Next page

Go to full version