Bugzilla – Bug 1176431
Get rid of system config files in /etc: x11-tools
Last modified: 2023-04-24 09:40:29 UTC
# rpm -ql x11-tools | grep /etc /etc/X11/xim /etc/X11/xim.d /etc/X11/xim.d/none /etc/skel/.i18n /etc/skel/.xim.template
(In reply to Stefan Dirsch from comment #0) > /etc/skel/.i18n > /etc/skel/.xim.template Blocked by boo#1173321
> /etc/X11/xim > /etc/X11/xim.d > /etc/X11/xim.d/none moved to /usr/etc/X11
I'm wondering /usr/lib would be appropriate place to move because these files are scripts rather than config files.
(In reply to Fuminobu Takeyama from comment #3) > I'm wondering /usr/lib would be appropriate place to move because these > files are scripts rather than config files. %libexec makes sense, as those are indeed shell scripts, indeed. OTOH, if the system needs overriding the setup, where is the appropriate place? /etc over /usr/etc looks normal, but for /usr/lib/blah?
> OTOH, if the system needs overriding the setup, where is the appropriate > place? If those scripts were intended to be overridden, they could be considered as config files rather than scripts, and thus, they should be placed under /usr/etc.
At least /etc/X11/xim.d are.
- /etc/X11/xim.d -> /usr/etc/X11/xim.d Ok, let's keep it for config dir so that sysadmins can write custom IM launch scripts. - /etc/X11/xim - /etc/X11/xim.d/xim - /etc/X11/xim.d/ibus (owned by ibus) - /etc/X11/xim.d/fcitx (owned by fcitx) - /etc/X11/xim.d/gcin (owned by gcin) These files are scripts. So /usr/libexec/X11/xim (or somewhere like that) will be appropriate. If someone wants to override IM launch script under ja environment, for example, she can write /etc/X11/xim.d/00-custom. I think she does not need to override the existing script files like /usr/etc/X11/ibus. # Of course, xim script need to be updated so that it can merge files in both/etc/X11/xim.d/$LANG and /usr/etc/X11/xim.d/$LANG
Adjusted xim script accordingly.
(In reply to Stefan Dirsch from comment #1) > (In reply to Stefan Dirsch from comment #0) > > /etc/skel/.i18n > > /etc/skel/.xim.template > > Blocked by boo#1173321 No longer blocked. Now files moved to /usr/etc/skel. Closing.