Skip to content
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

xfce4-panel searches wrong directories for plugins #39068

Closed
vikanezrimaya opened this issue Apr 17, 2018 · 9 comments
Closed

xfce4-panel searches wrong directories for plugins #39068

vikanezrimaya opened this issue Apr 17, 2018 · 9 comments
Labels
0.kind: question 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: xfce The Xfce Desktop Environment

Comments

@vikanezrimaya
Copy link
Member

vikanezrimaya commented Apr 17, 2018

Issue description

When I launch xfce4-panel, it searches for plugins in /run/current-system/sw/share/xfce4/panel/plugins and in /run/current-system/sw/share/xfce4/panel-plugins, but all plugins are installed into /run/current-system/sw/lib/xfce4/panel/plugins and there are not any .desktop files present at the first two paths above.

Steps to reproduce

  1. Install xfce.xfce4-panel (some plugins are already included)
  2. Launch strace -e open xfce4-panel 2>&1 | grep plugins to see which directories are searched for plugins and observe their absence:
open("/run/current-system/sw/share/xfce4/panel/plugins", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
open("/run/current-system/sw/share/xfce4/panel-plugins", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)

Technical details

  • system: "x86_64-linux"
  • host os: Linux 4.14.32, NixOS, 18.03.131807.489a14add9a (Impala)
  • multi-user?: yes
  • sandbox: no
  • version: nix-env (Nix) 2.0
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
@jtojnar
Copy link
Contributor

jtojnar commented Apr 17, 2018

According to the patch both paths are used:

+#define DATADIR "/run/current-system/sw/share/xfce4"
#define PANEL_PLUGINS_DATA_DIR (DATADIR G_DIR_SEPARATOR_S "panel" G_DIR_SEPARATOR_S "plugins")
#define PANEL_PLUGINS_DATA_DIR_OLD (DATADIR G_DIR_SEPARATOR_S "panel-plugins")
diff --git a/panel/panel-module.c b/panel/panel-module.c
index ba39320..519440b 100644
--- a/panel/panel-module.c
+++ b/panel/panel-module.c
@@ -35,6 +35,7 @@
#include <panel/panel-plugin-external-wrapper.h>
#include <panel/panel-plugin-external-46.h>
+#define LIBDIR "/run/current-system/sw/lib/xfce4"
#define PANEL_PLUGINS_LIB_DIR (LIBDIR G_DIR_SEPARATOR_S "panel" G_DIR_SEPARATOR_S "plugins")
#define PANEL_PLUGINS_LIB_DIR_OLD (LIBDIR G_DIR_SEPARATOR_S "panel-plugins")

@vikanezrimaya
Copy link
Member Author

vikanezrimaya commented Apr 17, 2018

Despite that, I don't see it opening this folder. Maybe I need to update xfce4-panel? How do I do it?

[kisik21@virtual:~]$ env DISPLAY=:0 xfce4-panel -V
xfce4-panel 4.12.1 (Xfce 4.12)

Copyright (c) 2004-2011
	The Xfce development team. All rights reserved.

Please report bugs to <http://bugzilla.xfce.org/>.

@jtojnar
Copy link
Contributor

jtojnar commented Apr 17, 2018

I think it searches the DATADIR for desktop files: https://wiki.xfce.org/dev/howto/panel_plugins. If so, it would not need to search LIBDIR at all.

@vikanezrimaya
Copy link
Member Author

vikanezrimaya commented Apr 19, 2018

And there should be symlinks for plugin desktop files. But there are seemingly none - at least on my VM. I'm provisioning NixOS on my laptop now, will report ASAP about symlinks in DATADIR.

If there are none, we have a bug in environment build system.

@vikanezrimaya
Copy link
Member Author

Updated the issue description to clarify the bug.

@jtojnar
Copy link
Contributor

jtojnar commented Apr 19, 2018

Did you enable the xfce module? For path to be installed to a profile (e.g. /run/current-system/sw) it needs to be listed in environment.pathsToLink, which the xfce module does:

@jD91mZM2
Copy link
Member

jD91mZM2 commented May 4, 2018

Wow, I just ran into this issue. I didn't figure this out until recently. Seems like something that should definitely be patched somehow so xfce4-panel can be used standalone without everyone going through the massive headache I just had. Can packages specify configuration options somehow?

@jtojnar jtojnar added 0.kind: question 6.topic: xfce The Xfce Desktop Environment labels May 4, 2018
@stale
Copy link

stale bot commented Jun 4, 2020

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 4, 2020
@abathur
Copy link
Member

abathur commented May 28, 2023

Closing since it sounds like Jan answered the question, but I'm happy to reopen if I'm overreaching.

@abathur abathur closed this as completed May 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: question 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: xfce The Xfce Desktop Environment
Projects
None yet
Development

No branches or pull requests

4 participants