chore: update libcosmic with mmap threshold fix
This commit is contained in:
parent
c133152b87
commit
69fd2b62df
5 changed files with 428 additions and 356 deletions
|
|
@ -20,7 +20,6 @@ cosmic-applet-time = { path = "../cosmic-applet-time" }
|
|||
cosmic-applet-workspaces = { path = "../cosmic-applet-workspaces" }
|
||||
cosmic-applet-input-sources = { path = "../cosmic-applet-input-sources" }
|
||||
cosmic-panel-button = { path = "../cosmic-panel-button" }
|
||||
libc = "0.2"
|
||||
libcosmic.workspace = true
|
||||
tracing.workspace = true
|
||||
tracing-subscriber.workspace = true
|
||||
|
|
|
|||
|
|
@ -4,13 +4,6 @@
|
|||
const VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||
|
||||
fn main() -> cosmic::iced::Result {
|
||||
// Prevents glibc from hoarding memory, such as cosmic-applet-minimize
|
||||
// consuming 100s of megabytes on restoring a minimized window.
|
||||
#[cfg(target_env = "gnu")]
|
||||
unsafe {
|
||||
libc::mallopt(libc::M_MMAP_THRESHOLD, 65536);
|
||||
}
|
||||
|
||||
tracing_subscriber::fmt().with_env_filter("warn").init();
|
||||
let _ = tracing_log::LogTracer::init();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue