You are not logged in.

#1 2014-07-24 21:41:29

Jarkore
Member
From: Austin, TX
Registered: 2013-08-05
Posts: 11
Website

[]

[]

Last edited by Jarkore (2016-08-17 01:23:27)

Offline

#2 2014-07-24 22:40:59

Hspasta
Member
Registered: 2011-12-24
Posts: 189
Website

Re: []

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

#3 2014-07-24 23:07:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: []

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

#4 2014-07-24 23:09:15

Jarkore
Member
From: Austin, TX
Registered: 2013-08-05
Posts: 11
Website

Re: []

[]

Last edited by Jarkore (2016-08-17 01:25:03)

Offline

#5 2014-07-25 00:52:18

Jarkore
Member
From: Austin, TX
Registered: 2013-08-05
Posts: 11
Website

Re: []

[]

Last edited by Jarkore (2016-08-17 01:25:11)

Offline

Board footer

Powered by FluxBB