Hi Nick, you think it's alright to use XDG_DATA_DIRS to check for directories with plugins? Currently the panel searches only in the prefix where it is installed (it seems), e.g. if you have the panel installed under the prefix /usr, you won't be able to install plugins under /usr/local. Cheers, Mike
There is a reason behind this, XDG_DATA_DIRS shows the <prefix>/share directories, while the new-4.8 plugin location is in <prefix>/lib, so so get this, the panel could try base dirname($XDG_DATA_DIR) + "/lib/xfce4/panel/plugins", but that is a bit hackish since (does not happen often, i agree, but common on multi-arch systems), $libdir could be something else then $prefix/lib. So I though when writing the 4.8 panel: "most distro's always choose the same prefix or a fixed $libdir", so I avoided the possible hackish behavior and used a fixed location. It is easy to adjust in the code, but I doubt it is a good idea.
I thought that the .desktop files for plugins still get installed under /usr/share/xfce4/panel-plugins/ and then inside the .desktop files the X-XFCE-Exec= defines that path to /usr/lib/xfce/panel-plugins/ So with that logic, you'd look for $XDG_DATA_DIRS or $XDG_DATA_HOME/xfce4/panel-plugins/ for .desktop files, and check them for the actual plug-in path in libdir... Did I miss something?
Because of multi-arch systems, only the module name is stored in the desktop file (X-XFCE-Module), libexec modules are obsoleted.
Indeed, it corresponds to bug 5455.
Fixed in ac15660.