fcm icon indicating copy to clipboard operation
fcm copied to clipboard

Config files are loaded from paths incosistent with debian packaging

Open poobarb opened this issue 7 years ago • 4 comments

The FCM documentation states that config files (such as keywords.cfg) are located from the following list of paths:

  • [$HOME/.fcm in some cases]
  • $FCM/etc/fcm/<configfile>
  • $HOME/.metomi/fcm/<configfile>

However, the Debian package for FCM (cf. here) installs the confing files to /etc/fcm (a choice which is not unreasonable), whilst it installs FCM itself to /usr/bin/. This leads to the expected config path being /usr/etc/fcm/ rather than /etc/fcm. Hence the config files are ignored.

Could FCM be modified to search the path /etc/fcm as well, leading to the following search order?

  • [$HOME/.fcm in some cases]
  • $FCM/etc/fcm/<configfile>
  • /etc/fcm/<configfile>
  • $HOME/.metomi/fcm/<configfile>

poobarb avatar Aug 16 '18 01:08 poobarb

Hi, the Debian package is not actually maintained by us. I think it is maintained by @amckinstry so you may want to check with him as well.

Otherwise, the search location is defined here: https://github.com/metomi/fcm/blob/master/lib/FCM/Util.pm#L106 So, it should be very easy to add /etc/fcm/ to it.

Note: the $HOME/.fcm location is obsolete.

matthewrmshin avatar Aug 16 '18 08:08 matthewrmshin

This change will be in Debian version fcm_2017.10.0-3, uploaded to unstable today.

amckinstry avatar Aug 31 '18 10:08 amckinstry

Hi @poobarb do you want us to make a change or are you happy with the solution provided by @amckinstry ?

matthewrmshin avatar Sep 04 '18 08:09 matthewrmshin

Hi, sorry - just realised I never responded to this...

Thanks for changing the Debian version, that fixed the issue. However, I guess it would still be good to get this fixed upstream too!

poobarb avatar Jan 04 '20 01:01 poobarb