TiZ-HugLife / xfce4-dockbarx-plugin

A plugin that embeds DockbarX into Xfce4-panel
MIT License
70 stars 14 forks source link

New app doesn't show up in bar #22

Closed lvancrayelynghe closed 8 years ago

lvancrayelynghe commented 8 years ago

Hi,

I've a strange bug : when I run an application (any one), it doesn't show up in the bar. I need to right click on the bar and hit "refresh", as you can see here : error.gif

No problem when using DockX directly. Any idea why ? I'm using Xubuntu 16.04 and the Dockbar PPA

[EDIT] If I remove the plugin and add it again, it works. But once I restart, it does'nt work any more.

Thanks

TiZ-HugLife commented 8 years ago

How peculiar! Can you run xfce4-panel in a terminal and copy the output here?

lvancrayelynghe commented 8 years ago

Nothing particular :

$ xfce4-panel --quit && xfce4-panel
DockbarX 0.92
DockbarX init
DockbarX reload

Nothing more if I run an app. If I hit "refresh", I see in console DockbarX reload

TiZ-HugLife commented 8 years ago

That's peculiar. It almost seems like a certain WNCK event isn't correctly propagating. What distro are you on?

lvancrayelynghe commented 8 years ago

Xubuntu 16.04.1, fresh install from Saturday. I'll try to purge my DockbarX and XFCE panel config files, see if it helps !

TiZ-HugLife commented 8 years ago

Okay. @M7S, any thoughts?

TiZ-HugLife commented 8 years ago

Are you still experiencing this issue, @Benoth?

TiZ-HugLife commented 8 years ago

Oops, I had the wrong number for that issue!

lvancrayelynghe commented 8 years ago

Sorry for the late return, I was on holiday. I still have the issue but I may have found the source. I'm using rsync to backup/restore my dotfiles and I have the problem when I restore, here's the files list I rsync :

~/.config/Thunar/accels.scm
~/.config/Thunar/uca.xml
~/.config/xfce4/helpers.rc
~/.config/xfce4/help.rc
~/.config/xfce4/panel/dockbarx-5.rc
~/.config/xfce4/panel/whiskermenu-1.rc
~/.config/xfce4/terminal/accels.scm
~/.config/xfce4/terminal/terminalrc
~/.config/xfce4/xfce4-notes.gtkrc
~/.config/xfce4/xfce4-notes.rc
~/.config/xfce4/xfconf/xfce-perchannel-xml/keyboards.xml
~/.config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml
~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-appfinder.xml
~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml
~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml
~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-notifyd.xml
~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml
~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-settings-manager.xml
~/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml
~/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml
~/.gconf/apps/dockbarx/%gconf.xml

Once the files are restored, my script runs xfce4-panel --restart and after this, I've the problem. I still have the problem after a full reboot (but still no errors when I run xfce4-panel --quit && xfce4-panel). But if I remove the plugin and add it re-add it, it works again.

It may be a violent way of doing things ? But still, I've found a workaround.

TiZ-HugLife commented 8 years ago

What happens if you exclude dockbarx-5.rc, dockbarx/%gconf.xml, and xfce4-panel.xml from the restoration?

lvancrayelynghe commented 8 years ago

Looks like dockbarx/%gconf.xml is the problem. If it can be of any help, here is the gconf.xml file.

Let me know if I can help in any way. I'll try to roll a VM with a clean install, add my dotfiles and see if I can reproduce, as soon as I find some time (holiday returns = lot of work, less free time ;) ).

TiZ-HugLife commented 8 years ago

I feel like I might have to make the call that this isn't really our bug. I'm fairly certain that applications that use gconf are under the reasonable expectation that the backing stores for their information (that is, the .xml files) will not be replaced with entirely new files while the app is running. It's sensible that behavior in such cases is undefined; hence the strange behavior you get. I'd advise finding another way to do what you're trying to do. If you must still restore those files, I'd quit xfce4-panel while so doing and start it after, rather than leaving it running and restarting after replacing the files.