FreeBSD 11.1 on amd64 running the "# pkg upgrade" and upgrading openbox resets the openbox menu.xml (/usr/local/etc/xdg/openbox/menu.xml) to default values. user customized items are removed. this is not really a bug, but is impractical from an end user's point of view. maybe the menu.xml can be left untouched when running an upgrade. probably affects all openbox upgrades. TIA //meine
(In reply to meine from comment #0) I imagine that most users will want to customize menu by editing ~/.config/openbox/menu.xml. OTOH, I see no reason why we can't convert global menu.xml and rc.xml (and probably environment and autostart too) to use @sample. I think I'll do that some time next week.
Created attachment 192521 [details] add @sample for global config files
(In reply to meine from comment #0) Could you please check if the attached patch works for you? Thanks
A commit references this bug: Author: novel Date: Wed Jan 16 16:45:10 UTC 2019 New revision: 490492 URL: https://svnweb.freebsd.org/changeset/ports/490492 Log: x11-wm/openbox: use @sample for global config files Even though users usually keep WM configuration local, it's good to use @sample for global configuration files to avoid losing it on package reinstalls. Bump PORTREVISION due to package change. PR: 227338 Reported by: meine <trialero@gmx.com> Changes: head/x11-wm/openbox/Makefile head/x11-wm/openbox/pkg-plist
There were no feedback on the patch, so I forgot about it. Just stumbled upon it and committed, thanks for reporting.
(In reply to Roman Bogorodskiy from comment #5) XQQ, I forgot to give feedback. The proper location of the menu in ~/.config/openbox/menu.xml should work.