Commit Graph

35 Commits

Author SHA1 Message Date
Ilya Fedin e070af3163 Limit malloc_trim to once per second 2025-07-21 07:51:48 +04:00
Ilya Fedin 77642d2876 Limit the amount of malloc arenas and call malloc_trim periodically with glibc
To prevent excessive memory usage looking like memory leak
2025-07-02 09:38:24 +04:00
Kaiyang Wu 19d7dd7aa3 fix(integration_linux): include core_settings.h with Qt version <= 6.5.0
Signed-off-by: Kaiyang Wu <self@origincode.me>
2025-03-09 20:33:20 +04:00
Ilya Fedin cf61dedc79 Simplify GNotification actions 2025-02-18 21:21:37 +04:00
Ilya Fedin 39b90092ff Revert "Fallback to portal on Linux if QStyleHints::colorScheme is unknown"
This reverts commit a88f48cd93.
2025-01-27 15:01:11 +01:00
Ilya Fedin d85b668d4f Fix lambda execution for portal dark mode getter 2024-10-24 07:04:52 +02:00
Ilya Fedin a88f48cd93 Fallback to portal on Linux if QStyleHints::colorScheme is unknown 2024-10-14 12:39:41 +04:00
Ilya Fedin 198528f79f Remove code needed for a removed patch 2024-05-21 14:20:43 +04:00
Sergey A. Osokin 58caec8d05 Fix build on FreeBSD 2024-03-25 10:14:17 +04:00
Ilya Fedin ad101dc8a0 A way to initialize GLib::VariantIter without gi::wrap is found 2024-03-15 23:10:43 +04:00
Ilya Fedin 3689e7dfbc Use cppgir compatible XDP utilities API 2024-03-15 00:00:24 +04:00
Ilya Fedin 59e53c1edf Port NotificationId conversion to cppgir 2024-03-15 00:00:24 +04:00
Ilya Fedin 1e9b7e2726 Use XDP::kObjectPath for session and request paths 2024-03-08 08:05:12 +04:00
Ilya Fedin a66b886c51 Initialize Linux lock screen monitor fully asynchronously 2024-03-08 08:05:12 +04:00
Ilya Fedin 931c17418d Update to the new cppgir API 2023-12-26 15:33:33 +00:00
John Preston 27d9fa6acb Fix CI build on Linux. 2023-11-17 13:07:18 +04:00
Ilya Fedin e0b4d1edce Avoid unneeded std::string casts in exception handling 2023-09-20 17:45:37 +04:00
Ilya Fedin cb838e6e52 Make use of the new XDP::SettingWatcher constructor 2023-09-18 12:44:20 +04:00
Ilya Fedin 4807244682 Don't use crl::on_main unnecessarily with XDP::SettingWatcher
g_dbus_connection_signal_subscribe calls the callback on the same thread
2023-09-04 16:21:58 +04:00
Ilya Fedin 07bbfd1353 Make dark mode update go through Qt code on Linux
This makes the behavior consistent and is possible now thanks to a Qt patch
2023-08-18 17:09:21 +02:00
Ilya Fedin 12eed5f433 Get optional string support in cppgir 2023-08-10 19:33:01 +04:00
Ilya Fedin c2e96db358 Fix a typo in the LinuxIntegration event dispatcher warning 2023-08-06 21:20:10 +04:00
Ilya Fedin 1cad1966f7 Try to instantiate GApplication instance without nested event loop 2023-08-06 21:20:10 +04:00
Ilya Fedin 8669e6a891 Port GApplication to cppgir 2023-08-06 21:20:10 +04:00
Ilya Fedin 3cb49127f4 Make a weak pointer for GApplication startup lambda
Or it never gets destroyed
2023-07-21 06:48:57 +04:00
Ilya Fedin 9ccb11bd1a Avoid using const_string for constant consumed by std::string 2023-07-20 21:39:06 +04:00
Ilya Fedin f817df9d7f Use new glibmm 2.78 API 2023-07-20 17:58:07 +04:00
Ilya Fedin 0534a2fb62 Fix QGuiApplication::desktopFileName usage
The Qt documentation says:
This is the file name, without the full path or the trailing ".desktop" extension of the desktop entry that represents this application according to the freedesktop desktop entry specification.

Qt 6.5.2 also automatically fixes it breaking all the current tdesktop and desktop-app usage expecting the file extension.
2023-07-19 23:51:50 +04:00
Ilya Fedin 074c725c6c Move Platform::ThirdParty::start content to LinuxIntegration 2023-06-13 12:19:21 +04:00
Ilya Fedin 9514b0d1f1 Get rid of unneeded gi::result wrap 2023-05-19 15:33:43 +04:00
Ilya Fedin 2ea50f5c85 Constify options in Linux screen locker monitor
That's possible now thanks to cppgir update
2023-05-19 15:33:43 +04:00
Ilya Fedin 0ffaff2d8b Support Qt 6.5 dark mode API 2023-05-15 12:33:30 +04:00
Ilya Fedin db60bee7dc Implement screen locker monitor on Linux 2023-05-15 09:51:13 +04:00
John Preston ba6c3eaf73 Add dummy Platform::Integration on Linux. 2022-01-06 15:44:02 +03:00
John Preston 8b0725650d Move global event filter to Platform::Integration on Windows. 2022-01-04 15:29:40 +03:00