xfce4-dockbarx-plugin
xfce4-dockbarx-plugin copied to clipboard
I'm bad and I feel bad...
If you try to run this by itself, you're bad and you should feel bad.
if socket == 0: sys.exit("Stop it. This program needs to be run by the XFCE embed plugin.")
Hey TiZ,
I'm on Fedora 22 XFCE trying to get dockbarx-plugin working. I managed to hunt down the correct dependencies and install then I tried both, ./waf configure and ./waf configure --prefix=/usr But it's not showing up in the panel's plugins. As you can see I tried running it directly like a dork.
How can I get it to show up in the plugins?
Thanks for developing this :-)
Haha, don't sweat it too much. We're all bad once in a while. Fun fact: If you pass the plug script the window ID of any GtkSocket, it will happily occupy said socket regardless of where it is. Well, it should, anyways.
Okay, so it might be an issue of Fedora having a different location for the desktop files that describe the panel plugins than Ubuntu and Arch have. Could I trouble you to do locate applicationsmenu.desktop
for me? On my system, the path is /usr/share/xfce4/panel/plugins/applicationsmenu.desktop, and that's where waf is configured to put dockbarx.desktop.
Sure, I got the same /usr/share/xfce4/panel/plugins/applicationsmenu.desktop
Could it also be an SELinux issue?
Edit: Oh and I tried to run it from the directory that contained every other plugin. "/usr/share/xfce4/panel/plugins"
Hmm. That means the file should be in the right place. Make sure that dockbarx.desktop is in that directory. Sorry to ask an insulting question, but are you looking for the right plugin? It should just be called DockbarX.
Also, I know absolutely jack diddly about SELinux, so I have no idea how to tell. :(
I used cd to go to the directory, and ls to list, and both "dockbarx.desktop" and "xfce4-dockbarx-plug" are there. When I open up panel preferences -> items -> add, and search for dockbarx it doesn't show up. I've tried logging in and out to see if I needed to reset the desktop as well.
That's so strange... and libdockbarx.so is in /usr/lib/xfce4/panel/plugins, right? Try copying it to /usr/lib/x86_64-linux-gnu/xfce4/panel/plugins and see if that makes a difference.
Yep, libdockbarx.so is also in the correct location. /usr/lib/x86_64-linux-gnu/ doesn't exist on my system, should I create it? (Along with sub-directories)
No, no, don't do that. Just copy it to where all the other plugin modules are. locate libsystray.so
and copy it to that directory.
Okay, haha. Good thing I asked. So turns out libsystray.so was in /usr/lib64/xfce4/panel/plugins/
So I copied both dockbarx.desktop as well as xfce4-dockbarx-plug there..
Logged in and back out and still no dockbarx when I go to add plugins to the panel.. Hmm.
It's probably not caused by the XFCE 4.2, the version I mean, because your plugin works in Arch as well, right?
It did last time I checked. Even so, I installed the latest version in Xubuntu 14.04 anyways. Did you mean 4.12?
Yes, 4.12, sorry for the confusion
Then at this point, I'm stumped. :( I'll see if I can't find someone from the Fedora XFCE community to offer some insight.
Okay, I appreciate your help. Let me know if I can be of any help testing. I'll update you if I figure anything out on my end.
So, without necroing too much.
@RomanSC, you need to move two different files into two different spots:
-
build/libdockbarx.so
should be moved to/usr/lib64/xfce4/panel/plugins/libdockbarx.so
-
build/data/dockbarx.desktop
should be moved to/usr/share/xfce4/panel/plugins/xfce4-dockbarx-plugin.desktop
Now, I'm on F23 and I actually went and made .spec
files for DockbarX and xfce4-dockbarx-plugin, that (kinda) successfully create the respective .rpm
files.. But, I can't seem to load the plugin correctly.
As soon as I add the plugin to the panel, I get this assertion error:
(wrapper-1.0:29642): GLib-CRITICAL **: g_key_file_load_from_file: assertion 'file != NULL' failed
Also, every time I restart the panel, I get a brand new dialog asking me to set the background color for the plugin.
Any ideas? DockbarX seems to be working fine when I start it as a standalone dock, but some of it's plugins might not yet (I'm still figuring out the respective python dependencies from Arch into Fedora23)