Comments (14)
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.
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.
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.
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.
I think it's safe to assume that /tmp
is writable.
from pathpicker.
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.
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.
from pathpicker.
$HOME/.fpp
is preferable to me... that way fpp
doesn't have to deal with user issues.
proposed PR: #77
from pathpicker.
Fixed by #77 !
from pathpicker.
Should it be possible to define a custom FPP_DIR environment variable? Say, I want to move it to $HOME/.config/fpp
.
from pathpicker.
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.
👍 for $HOME/.config/fpp
. Adding another, even hidden, directory in $HOME
just for one application looks like an overkill.
from pathpicker.
@SamHasler XDG_CONFIG_HOME
may not be set by default (it is not set on Ubuntu 14.04 for instance).
from pathpicker.
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)
- Allow configuring keyboard controls
- Command mode is broken in latest master HOT 1
- fpp-git on AUR is quite outdated HOT 2
- Feature Request: Make man page easier to read, put each flag in its own line. HOT 5
- Filename within `#` cannot be pick
- The way of determining shell is not reliable.
- Demo videos in homepage not loading on mobile HOT 2
- Issue and PR templates HOT 2
- Skip the `F` key in quick select mode
- Problems with paths with spaces in them
- New release before EOY? HOT 6
- Support for git diffs
- Standalone Executable File
- fpp not opening files in $EDITOR HOT 7
- Infinite loop when selecting entry with certain width relative to window width HOT 1
- Release 0.9.5 but fpp --version says 0.9.2 HOT 1
- feature request: open files in vim tab pages
- chore: use pre-commit hook
- ci: update versions and add `paths-ignore`
- macOS Python segfault HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pathpicker.