Comments (3)
Why not add a small: conf-subuser file in the subuser base directory
simples option: using a 'conf-subuser.py' and import it when executing subuser (which should stay in the subuser base directory /bin or so
programsThatCanBeInstalledPath = "/blabla/bla"
subuser-binPath = "/blabla/bla"
or use a 'conf-subuser.json' and use json to handle it
from subuser.
I think that the proper approach is to add optional json files to the users home dir and the /etc/
directory which would specify alternate locations for things. Like:
~/.subuser/conf.json
and
/etc/subuser/conf.json
The key thing is that these config files have to be optional, so that the run-in-place variety of subuser still works without hitch.
from subuser.
subuser/logic/subuserCommands/subuserlib/paths.py
will look for paths in the following order:
First it will look for paths in ~/.subuser/paths.json
then /etc/subuser/paths.json
then $SUBUSERDIR/paths.json
. This will be a partial fallback method, so that ~/.subuser/paths.json
and /etc/subuser/paths.json
may contain some but not all of the paths. $SUBUSERDIR/paths.json
must contain all paths though as it defines the paths. When expanding these paths the ENV_VAR $SUBUSER
must be set appropriately.
Run os.path.expandvars(path) on the paths.
$SUBUSER/paths.json
will look like:
{
"repositories" : ["$SUBUSERDIR/programsThatCanBeInstalled"],
"bin" : "$SUBUSERDIR/bin",
"installed-programs.json" : "$SUBUSERDIR/installed-programs.json",
"user-set-permissions-dir" : "$SUBUSERDIR/permissions/",
"program-home-dirs-dir" : "$SUBUSERDIR/homes/"
}
paths.json
will be documented the same way permissions.json
is documented.
Once this is done, #12 (comment) will be fixed.
from subuser.
Related Issues (20)
- Building a new package does not use intermediate images HOT 3
- Exception when git binary not present
- Half-initialized repo results in "Not a valid object name master" error
- Missing `GitException` handling
- Failing just becasue of git warning may be too restrictive
- Cannot start xpra on Fedora 25
- `subuser repair` returns success to the shell despite failure
- Bug in getGraphicsCardDevices HOT 1
- Invalid path '/root/.subuser': Permission denied HOT 6
- How to make subuser to support "docker-ce"? HOT 5
- wierd issue i cant fix. when i type subuser list available HOT 9
- package add vim tries to install iceweasel, and fails HOT 4
- Issues with opening website subuser.org from IPv6-only environment HOT 1
- HTML5 xpra client support HOT 2
- Cannot build images HOT 4
- Expired SSL certificate on https://subuser.org/ HOT 1
- Question: does subuser support podman? HOT 4
- Comparison to Flatpak HOT 1
- clipboard permission of 'true' or 'false' is not granular enough HOT 3
- Can't get subuser to run Ubuntu 22.04 / KDE neon 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 subuser.