Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #163832
| Path | csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | songbird <songbird@anthive.com> |
| Newsgroups | comp.lang.c |
| Subject | Re: Unix-y way to store records/structures within filesystem in C |
| Date | Tue, 14 Dec 2021 09:58:16 -0500 |
| Organization | the little wild kingdom |
| Lines | 25 |
| Message-ID | <81om8i-932.ln1@anthive.com> (permalink) |
| References | <281cf765-1771-4549-9baf-9e2b8b886bb7n@googlegroups.com> |
| Reply-To | songbird <songbird@anthive.com> |
| Injection-Info | reader02.eternal-september.org; posting-host="3ae97299e8c09770f19c8b539b61d675"; logging-data="18076"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/DoTwys3Ll9z94WBqNF+ZkiSt9+WaB2lc=" |
| User-Agent | slrn/1.0.3 (Linux) |
| Cancel-Lock | sha1:KH/MYp/Um3HmsU0gxLInZbRlW/c= |
| Xref | csiph.com comp.lang.c:163832 |
Show key headers only | View raw
Bithov Vinu Student wrote: ... > Ideally my program would run on a per-user basis, ie. in the home directory of a given user: > > ~/.cards/<WHERE THE CARDS ARE STORED> ... in recent years the attempt to get away from the multiple dot files under a users home directory of many linux distributions is to use ~/.config/<program-name>/ as the place to store configuration files and ~/.local/share/<program-name>/ as the place to store program data. note, that making sure the directory doesn't already exist is important because if the user has already installed another program with the same name then you don't want to clobber or corrupt their previous work. card is a very generic name and you may want to use something a bit more complicated to avoid some chance of easy name collision. if you intend this program to work for Macs or other systems then the file system layout is different for those. songbird
Back to comp.lang.c | Previous | Next — Previous in thread | Find similar | Unroll thread
Unix-y way to store records/structures within filesystem in C Bithov Vinu Student <vinub@calday.co.uk> - 2021-12-12 23:45 -0800 Re: Unix-y way to store records/structures within filesystem in C Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2021-12-13 16:14 +0000 Re: Unix-y way to store records/structures within filesystem in C songbird <songbird@anthive.com> - 2021-12-14 09:58 -0500
csiph-web