File plugin-dir.patch of Package anyrun
diff --git a/anyrun/src/main.rs b/anyrun/src/main.rs
index fb9f62e..d3ff3a3 100644
--- a/anyrun/src/main.rs
+++ b/anyrun/src/main.rs
@@ -200,6 +200,7 @@ mod style_names {
/// Default config directory
pub const DEFAULT_CONFIG_DIR: &str = "/etc/anyrun";
+pub const DEFAULT_LIB_DIR: &str = "/usr/lib/anyrun";
fn main() {
let app = gtk::Application::new(Some("com.kirottu.anyrun"), Default::default());
@@ -356,7 +357,7 @@ fn activate(app: >k::Application, runtime_data: Rc<RefCell<RuntimeData>>) {
plugin_paths.append(&mut vec![
format!("{}/plugins", runtime_data.borrow().config_dir).into(),
- format!("{}/plugins", DEFAULT_CONFIG_DIR).into(),
+ format!("{}/plugins", DEFAULT_LIB_DIR).into(),
]);
// Load plugins from the paths specified in the config file
@@ -369,7 +370,7 @@ fn activate(app: >k::Application, runtime_data: Rc<RefCell<RuntimeData>>) {
// Load the plugin's dynamic library.
let mut user_path =
PathBuf::from(&format!("{}/plugins", runtime_data.borrow().config_dir));
- let mut global_path = PathBuf::from("/etc/anyrun/plugins");
+ let mut global_path = PathBuf::from("/usr/lib/anyrun/plugins");
user_path.extend(plugin_path.iter());
global_path.extend(plugin_path.iter());