Coder Social home page Coder Social logo

Comments (14)

SamHasler avatar SamHasler commented on April 25, 2024 1

Would supporting XDG_CONFIG_HOME if it's set give more users a cleaner home
dir by default?
On Dec 30, 2015 5:23 PM, "Peter Cottle" [email protected] wrote:

Yeah I would be fine with that -- would accept the PR as long as it has a
sane default and some basic test coverage (and would be in the help
output). We have a number of env variables right now but so far its
manageable


Reply to this email directly or view it on GitHub
#17 (comment).

from pathpicker.

pcottle avatar pcottle commented on April 25, 2024

Yeah I have been meaning to get around to this -- totally can as well. a few questions for you @vitaut:

  • is the current user always guaranteed to have write capabilities into $HOME/.local/share? one of the nice things about the home directory is not having to worry about user permissions
  • is it guaranteed to exist? or will we have to mkdir -p beforehand?

I'd love to resolve this though, and it shouldnt be hard since these are all constants in the code

from pathpicker.

vitaut avatar vitaut commented on April 25, 2024

Although all systems I've been working on have writable $HOME/.local/share, I can't say whether this directory is guaranteed to exist, so it's probably safer to check and create if it doesn't.

On a closer inspection though.fbPager* files look more like temporary files (are they?) rather than some user-specific settings and could probably be stored in /tmp.

from pathpicker.

pcottle avatar pcottle commented on April 25, 2024

yeah they are all temporary -- the only one that persists between sessions is the selection pickle and if thats gone its nbd.

same question -- is /tmp always guaranteed to be writeable? or on average more guaranteed to be writeable and exist compared to a home dir?

from pathpicker.

vitaut avatar vitaut commented on April 25, 2024

I think it's safe to assume that /tmp is writable.

from pathpicker.

pcottle avatar pcottle commented on April 25, 2024

Alright -- this is coming tomorrow!

we'll be sharing the same pickle selection across users on the same machine, so maybe we should prepend by the username? pwd.getpwuid(os.getuid()).pw_name

from pathpicker.

zkanda avatar zkanda commented on April 25, 2024

I think it's safe to assume that everything under the users directory is owned by the user.

A lot of projects is either using $HOME/.config or a dedicated folder in home:
E.g.
screen shot 2015-05-09 at 11 35 00 pm

from pathpicker.

lastquestion avatar lastquestion commented on April 25, 2024

$HOME/.fpp is preferable to me... that way fpp doesn't have to deal with user issues.
proposed PR: #77

from pathpicker.

pcottle avatar pcottle commented on April 25, 2024

Fixed by #77 !

from pathpicker.

mcchrish avatar mcchrish commented on April 25, 2024

Should it be possible to define a custom FPP_DIR environment variable? Say, I want to move it to $HOME/.config/fpp.

from pathpicker.

pcottle avatar pcottle commented on April 25, 2024

Yeah I would be fine with that -- would accept the PR as long as it has a sane default and some basic test coverage (and would be in the help output). We have a number of env variables right now but so far its manageable

from pathpicker.

vitaut avatar vitaut commented on April 25, 2024

👍 for $HOME/.config/fpp. Adding another, even hidden, directory in $HOME just for one application looks like an overkill.

from pathpicker.

vitaut avatar vitaut commented on April 25, 2024

@SamHasler XDG_CONFIG_HOME may not be set by default (it is not set on Ubuntu 14.04 for instance).

from pathpicker.

SamHasler avatar SamHasler commented on April 25, 2024

I know. I'm just saying if XDG_CONFIG_HOME is set, use it, as that's where
that user keeps their config.
On Dec 31, 2015 2:25 PM, "Victor Zverovich" [email protected]
wrote:

@SamHasler https://github.com/SamHasler XDG_CONFIG_HOME may not be set
by default (it is not set on Ubuntu 14.04 for instance).


Reply to this email directly or view it on GitHub
#17 (comment).

from pathpicker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.