Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zlaunch"
version = "0.5.0"
version = "0.5.1"
edition = "2024"
description = "A fast application launcher for Linux wayland desktops built with GPUI."
repository = "https://github.com/zortax/zlaunch"
Expand Down
9 changes: 6 additions & 3 deletions src/daemon/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::sync::Arc;
use tracing::{error, info};

use crate::compositor::{Compositor, detect_compositor};
use crate::config::{ConfigModule, get_combined_modules};
use crate::config::{ConfigModule, LauncherMode, get_combined_modules, get_default_modes};
use crate::desktop::cache::load_applications;
use crate::ipc::{IpcServerHandle, client, prepare_socket, start_server};
use crate::items::ApplicationItem;
Expand Down Expand Up @@ -58,9 +58,12 @@ pub fn start_ipc_server(
/// Initialize clipboard monitoring if enabled in config.
pub fn init_clipboard_if_enabled() {
let combined_modules = get_combined_modules();
let default_modes = get_default_modes();

if combined_modules.contains(&ConfigModule::Clipboard) {
// Initialize clipboard history
let in_combined = combined_modules.contains(&ConfigModule::Clipboard);
let in_modes = default_modes.contains(&LauncherMode::Clipboard);

if in_combined || in_modes {
crate::clipboard::data::init();
info!("Initialized clipboard history");

Expand Down
Loading