xfpanel-switch is failing to save panel settings
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Xfce4 Panel Profiles |
Fix Released
|
Undecided
|
Alistair Buxton | ||
xfpanel-switch (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When I try to save the actual xfce4-panel settings the save fails. When opening xfpanel-switch terminal, the following message appears when clicking to save:
Traceback (most recent call last):
File "/usr/share/
self.
File "/usr/share/
PanelConfig
File "/usr/share/
pc.
File "/usr/share/
if self.check_
File "/usr/share/
bytes = self.get_
File "/usr/share/
return open(path, 'rb')
FileNotFoundError: [Errno 2] Arquivo ou diretório inexistente: '/home/
And the panel setting is not saved. When this happens, the buttons to save and close have no action when clicked.
Here is a image with the panel: https:/
Here is the output from ls -lR ~/.config/
/home/usuario/
total 24
-rw-rw-r-- 1 usuario usuario 145 abr 19 21:26 genmon-10.rc
-rw-rw-r-- 1 usuario usuario 99 fev 9 2017 genmon-16.rc
drwx------ 2 usuario usuario 4096 abr 19 20:08 launcher-1
drwx------ 2 usuario usuario 4096 abr 19 20:08 launcher-8
-rw-rw-r-- 1 usuario usuario 1739 ago 27 2017 whiskermenu-1.rc
-rw-rw-r-- 1 usuario usuario 1959 abr 19 20:40 whiskermenu-2.rc
/home/usuario/
total 4
-rw-rw-r-- 1 usuario usuario 708 abr 19 20:08 15241793011.desktop
/home/usuario/
total 4
-rw-rw-r-- 1 usuario usuario 532 abr 19 20:08 15241793122.desktop
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: xfpanel-switch 1.0.7-0ubuntu1
Uname: Linux 4.16.3-
ApportVersion: 2.20.9-0ubuntu5
Architecture: amd64
CurrentDesktop: XFCE
Date: Thu Apr 19 21:35:10 2018
InstallationDate: Installed on 2017-06-13 (310 days ago)
InstallationMedia: Xubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
PackageArchitec
SourcePackage: xfpanel-switch
UpgradeStatus: Upgraded to bionic on 2017-10-20 (182 days ago)
Related branches
- Xfce4 Panel Profiles Team: Pending requested
-
Diff: 84 lines (+39/-7)1 file modifiedxfpanel-switch/panelconfig.py (+39/-7)
Changed in xfpanel-switch: | |
status: | New → Fix Committed |
assignee: | nobody → Alistair Buxton (a-j-buxton) |
Changed in xfpanel-switch: | |
status: | Fix Committed → Fix Released |
First a quick description of the panel configuration: Every plugin on every panel is stored in a series of properties. Then, each panel has a list of plugins on that panel, which references the central list.
What has happened here is that somehow a panel has been deleted (panel-0), but the plugin settings associated with it have been left behind. However, the .desktop files for the launchers have been deleted. Launchers are not the only type of plugin which has been orphaned in this way, there are a few others. Every plugin with ID > 11 in the xml is an orphan.
I'm not sure how this happened. It doesn't seem to happen with the panel in 18.04 if you delete a panel.
In order to fix this I think panel-switch will have to check where every plugin exists somewhere on a panel, and if not ignore it (ie don't save it).