You are not logged in.
Pages: 1
[]
Last edited by Jarkore (2016-08-17 01:23:27)
Offline
Example configs should be stored in /usr/share/docs/<program>/ not /etc/.
On first run:
$ feednix ~
cp: cannot create regular file ‘/home/hsp/.config/feednix/config.json’: No such file or directory
chmod: cannot access ‘/home/hsp/.config/feednix/config.json’: No such file or directory
ERROR: Log In Failed - Unable to read from config file
* Line 1, Column 1
Syntax error: value, object or array expected.
I would expect a program to have some sort of defaults to use when there is no config set, or tell you something useful other than crashing.
Offline
I haven't look at this one yet - but /etc/ can be a good place place for default configs (not "exampes", but if they are to actually be used) - but they should be under /etc/xdg/<package>/ [1]
That way, in the absence of a user specific config, the default from that directory can be used.
[1] http://standards.freedesktop.org/basedi … atest.html
EDIT: I haven't spotted it yet, but something in your makefile or PKGBUILD ignored the DESTDIR or pkgdir variable and installed the default config during the build. So when I tried to install the package, I got a conflicting file error. (note: this is in the -git PKGBUILD)
Last edited by Trilby (2014-07-24 23:11:36)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
[]
Last edited by Jarkore (2016-08-17 01:25:03)
Offline
[]
Last edited by Jarkore (2016-08-17 01:25:11)
Offline
Pages: 1