[ubuntu-mono] [Bug 1622951] Re: bless fails to handle user config
V F
trivia21 at freemail.hu
Mon Oct 9 12:23:07 UTC 2017
Ok, I decided to dig deeper into this. This is the first time I'm doing
something like this, so feel free to correct me where needed. Here is
what I've found:
(1) This bug report was not associated with the intended bless package.
This one is the console version of bless (binary called cbless). The GUI
bless can be found here: https://github.com/bwrsandman/Bless
(2) There is a bug in the code that saves the options. An exception is
thrown, and the preferences.xml is not closed properly and ends up being
written partially. The same bug is present in the code that saves the
last session. I've created a patch that fixes both. Maybe I'll send it
to the Bless GitHub page too. However the last change was made three
years ago, so no high hopes.
(3) To fix the problem manually:
- Download the source: git clone https://github.com/bwrsandman/Bless.git
- Apply my patch.
- Follow the readme:
- Install the needed packages. For me the following were missing: nuget mono-complete gtk-sharp2.
- nuget restore Bless.sln
- xbuild /p:Configuration=Release Bless.sln
- If it succeeds, you can run the patched bless with "mono src/bin/Release/bless.exe"
- No help in the readme about installation... If you're radical, like me, just overwrite the installed version. This may cause problems, like you'll have to remember to manually delete these two directories if you uninstall Bless through the package manager.
sudo rm /usr/share/bless/*
sudo cp data/* /usr/share/bless
sudo rm /usr/lib/bless/*
sudo cp src/bin/Release/* /usr/lib/bless
** Patch added: "fixxmltextwriter.patch"
https://bugs.launchpad.net/ubuntu/+source/bless/+bug/1622951/+attachment/4965764/+files/fixxmltextwriter.patch
--
You received this bug notification because you are a member of Ubuntu
CLI/Mono Uploaders, which is subscribed to bless in Ubuntu.
https://bugs.launchpad.net/bugs/1622951
Title:
bless fails to handle user config
Status in bless package in Ubuntu:
Confirmed
Bug description:
I can't save any configuration.
If I provide default configuration, bless reads it and fails to update
it properly. The xml structure is cut off afterwards.
Here is the output I get when I start bless:
Directory '/home/$USER/.config/bless/plugins' not found.
Directory '/home/$USER/.config/bless/plugins' not found.
Directory '/home/$USER/.config/bless/plugins' not found.
Could not find file "/home/$USER/.config/bless/export_patterns".
Could not find file "/home/$USER/.config/bless/history.xml".
Document does not have a root element.
Sharing violation on path /home/$USER/.config/bless/preferences.xml
Sharing violation on path /home/$USER/.config/bless/preferences.xml
Sharing violation on path /home/$USER/.config/bless/preferences.xml
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bless/+bug/1622951/+subscriptions
More information about the Ubuntu-mono
mailing list