Created attachment 6871 Patch for flags in XDG_DATA_HOME Hello! This patch makes xfce4-xkb-plugin use custom per-user flag icons in $XDG_DATA_HOME (as XDG Base Directory [1] specifies it), i. e. $XDG_DATA_HOME/us.svg, $XDG_DATA_HOME/ru.svg and so forth, falling back to FLAGSDIR if those are absent. Such a feature would let a user have his own flags for some (or all) keyboard layouts with no necessity to overwrite flag files in system directory and without losing those on package update. Please consider applying. [1] https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
I think using the XDG_DATA_HOME is not a good idea. By default it's a ~/.local/share directory which is not a good place to store icons directly in the root. I think $XDG_DATA_HOME/xfce4/xkb/flags should be used for this (just like /usr/share/xfce4/xkb/flags/ is used by default).
(In reply to Viktor Odintsev from comment #1) > I think using the XDG_DATA_HOME is not a good idea. By default it's a > ~/.local/share directory which is not a good place to store icons directly > in the root. I think $XDG_DATA_HOME/xfce4/xkb/flags should be used for this > (just like /usr/share/xfce4/xkb/flags/ is used by default). Sure. To be honest, the proposed patch is the best I could do since I'm not a programmer and could not implement the idea right way. So it would be more than nice if someone familiar with C did it like it should be.
Viktor Odintsev referenced this bugreport in commit 7f74d7e811e8031d4e8c475919493d93dd0bbf3d Bug 12884: Load flags from XDG_DATA_HOME if present https://git.xfce.org/panel-plugins/xfce4-xkb-plugin/commit?id=7f74d7e811e8031d4e8c475919493d93dd0bbf3d
Viktor, thanks!
Should work in 0.8.0
> Should work in 0.8.0 It does. Thanks again!