mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
compat: improve non glibc support
This commit is contained in:
@@ -268,7 +268,9 @@ void Application::run() {
|
||||
runStartupPhase("telemetry enqueue",
|
||||
[this]() { m_telemetryService.maybeSend(m_configService, m_httpClient, m_wayland); });
|
||||
|
||||
#ifdef __GLIBC__
|
||||
runStartupPhase("malloc_trim", []() { malloc_trim(0); });
|
||||
#endif
|
||||
|
||||
m_trayInitTimer.start(std::chrono::milliseconds(500), [this]() { startTrayService(); });
|
||||
m_polkitInitTimer.start(std::chrono::milliseconds(0), [this]() { syncPolkitAgent(); });
|
||||
@@ -987,8 +989,6 @@ void Application::initUi() {
|
||||
m_fileDialogPopup.requestLayout();
|
||||
});
|
||||
|
||||
m_configService.addReloadCallback([]() { malloc_trim(0); });
|
||||
|
||||
m_timeService.setTickSecondCallback([this]() {
|
||||
m_wallpaper.onSecondTick();
|
||||
if (m_lockScreen.isActive()) {
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/un.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/un.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
@@ -690,8 +690,6 @@ void PanelManager::destroyPanel() {
|
||||
if (m_platform != nullptr) {
|
||||
m_platform->stopKeyRepeat();
|
||||
}
|
||||
|
||||
malloc_trim(0);
|
||||
}
|
||||
|
||||
void PanelManager::togglePanel(const std::string& panelId, PanelOpenRequest request) {
|
||||
|
||||
Reference in New Issue
Block a user