name for use config file?

Giuseppe Bilotta giuseppe.bilotta at gmail.com
Fri Jan 19 04:19:38 PST 2007


On Friday 19 January 2007 11:37, chris elliott wrote:

> 
> 
> Vadim Zeitlin wrote:
>>  Hello,
>> 
>>  What should be the default name for the user (wxFile)Config file when
it's
>> localed in a subdirectory of $HOME? Currently we use ~/.appname when the
>> file is directly in $HOME but I think it's not nice to still name it like
>> this, resulting in names like ~/.appname/appname, when it's in a
>> subdirectory. I'd like to use ~/.appname/appname.conf 
> Yes, then it can be opened in a plain text editor, so i like this over 
> ~/.appname/appname
> 
> while the other
>> possibilities include ~/.appname/appname.rc, 
> This should be for MSW style resources ?? :-)

the *rc ending is actually a pretty standard ending for configuration files
in Unix. For exampe, ls .*rc on my $HOME dir shows

.bashrc
.dmrc
.gtk_qt_engine_rc
.hgrc
.kderc
.mcoprc
.qGorc
.reportbugrc
.rhapsodyrc

and ls .*/*rc gives

.gimp-2.2/colorrc
.gimp-2.2/controllerrc
.gimp-2.2/devicerc
.gimp-2.2/gimprc
.gimp-2.2/gtkrc
.gimp-2.2/menurc
.gimp-2.2/parasiterc
.gimp-2.2/pluginrc
.gimp-2.2/sessionrc
.gimp-2.2/templaterc
.gimp-2.2/themerc
.gimp-2.2/toolrc
.gimp-2.2/unitrc
.qcomicbook/qcomicbookrc
.qt/kconfigrc
.qt/kstylerc
.qt/qt_plugins_3.3rc
.qt/qtrc
.scribus/scribus13.rc
.twm/system.twmrc
.vlc/vlcrc

OTOH, there are a few .conf entries too:

.AbiSuite/coquille.conf
.aMule/amule.conf
.mplayer/gui.conf
.mplayer/mplayerplug-in.conf
.xchat2/colors.conf
.xchat2/commands.conf
.xchat2/ignore.conf
.xchat2/keybindings.conf
.xchat2/notify.conf
.xchat2/servlist_.conf
.xchat2/sound.conf
.xchat2/systray.conf
.xchat2/xchat.conf
.yzis/hl.conf

Overall, though, <appname>rc seems to me the most common thing on Unix, and
it gets my vote (/without/ the dot between the appname and the 'rc')


-- 
Giuseppe "Oblomov" Bilotta





More information about the wx-dev mailing list