-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deepin.deepin-wm: fix paths related to plugins and desktop files #59940
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there any deepin-wm
plugins distributed or used internally in other DDE components?
This will also need a wrapper used when there's plugins provided.
I did not find any. Edited: I have looked at Arch Linux, and Deepin Linux. |
Considering that there is no other DDE component that installs any plugins for @worldofpeace Do you agree? |
Yeah, I think there's a comment somewhere from me about patching only when there's a plugin ecosystem that's useful. For example in pantheon |
Though I wouldn't toss the code away, it could change in the future who knows |
I am removing the From 028f9214a251741df89b56836fa4e8efd16c8cb2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jos=C3=A9=20Romildo=20Malaquias?= <[email protected]>
Date: Fri, 19 Apr 2019 23:56:33 -0300
Subject: [PATCH] deepin.deepin-wm: set plugin dir from environment variable
---
src/PluginManager.vala | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/PluginManager.vala b/src/PluginManager.vala
index 9ff8856..f9ac214 100644
--- a/src/PluginManager.vala
+++ b/src/PluginManager.vala
@@ -58,7 +58,11 @@ namespace Gala
return;
}
- plugin_dir = File.new_for_path (Config.PLUGINDIR);
+ string? plugin_dir_name = GLib.Environment.get_variable ("DEEPIN_WM_PLUGINS_DIR");
+ if (plugin_dir_name == null || plugin_dir_name == "")
+ plugin_dir_name = Config.PLUGINDIR;
+ debug ("Plugin dir: %s", plugin_dir_name);
+ plugin_dir = File.new_for_path (plugin_dir_name);
if (!plugin_dir.query_exists ())
return;
--
2.21.0 |
Motivation for this change
deepin.deepin-wm: set plugins dir from environment variableAbout packaging deepin for NixOS: #59023
See also #59244 (comment)
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)