Added tray function for windows and linux(kde/gnome). Global shortcut to show/hide program windows
This commit is contained in:
1 parent
0fe753f16e
commit
abbca0e411
5 files changed
+522
-18
No files matched your search
+1
-1
@@ -383,7 +383,7 @@ fn detect_backend() -> Backend {
|
||||
}
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
fn is_wayland_session() -> bool {
|
||||
pub(crate) fn is_wayland_session() -> bool {
|
||||
std::env::var_os("WAYLAND_DISPLAY").is_some()
|
||||
|| std::env::var("XDG_SESSION_TYPE")
|
||||
.is_ok_and(|session| session.eq_ignore_ascii_case("wayland"))
|
||||
|
||||
Reference in new issue
Block a user