On samedi 19 février 2022 19:55:33 CET mark_at_yahoo via Rosegarden-devel wrote: > On 2/19/22 6:13 AM, Philip Leishman wrote: > > On 2/19/22 15:02, Ted Felix wrote: > >> My guess is that you've got an .rc file in > >> > >> ~/.local/share/rosegarden/rc > >> > >> That will prevent the new one from being picked up. Rename any that > >> are in there to end in ".old" or whatever and then re-run rg. All the > >> correct menu items should reappear.
I thought about this but since rosegarden doesn't appear to offer configurable shortcuts or toolbars (which is kind of the whole point of using kxmlgui BTW...), nothing should create a file in ~/.local/share/rosegarden/rc. > The problem actually wasn't ~/.local/share/rosegarden/rc (that directory > didn't exist), but rather /usr/share/rosegarden/rc from my distro's > 17.12 installed package. It only took 5 seconds to figure that out, > mkdir ~/.local/share/rosegarden/rc, and copy my development tree's > matrix.rc into there. Voila! Ah! Well done. > Is there a way to configure something like a compiled-in or > runtime-settable $QT_SEARCH_PATH to keep the RG executable from using > /usr/share? Yes, XDG_DATA_DIRS. Excluding /usr/share from XDG_DATA_DIRS is generally not a good idea, because e.g. mimetype definitions are only found there, so the app would be missing them (e.g. for the file dialog). However you can just set XDG_DATA_DIRS to YOUPREFIX/share:/usr/share and all will be fine. It's the recommended way to hack on KDE apps installed into a different prefix. The rc files installed into your install prefix will have precedence over those installed in /usr. > Wait ... got it! Searched the docs, found QStandardPaths (I wrote QStandardPaths BTW) > searched the code, found ResourceFinder.cpp -- all good now. (I'll > restore the original "prefixes" variable's static initializer in > ResourceFinder::getSystemResourcePrefixList() before submitting any > merge requests.) Good find, but setting an env var is much simpler, it'll keep your "git diff" clean :) -- David Faure, fa...@kde.org, http://www.davidfaure.fr Working on KDE Frameworks 5 _______________________________________________ Rosegarden-devel mailing list Rosegarden-devel@lists.sourceforge.net - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-devel