-
-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feat] Remove run as administrator from startup message in CLI #753
Comments
I would question this message entirely - no idea what it is for... and it is only valid on selected operating systems. IMHO it could be just removed. |
I don't even see this. AFAIU, this is Ubuntu specific. I don't really think that GRASS should be responsible for dealing with it. |
I don't see it neither, but I can understand it's annoying. Considering the startup "tricks" overrides what the user would expect to be there – even now it copies from .alias and *bashrc to the new home in $LOCATION – why not consider the eventual existence of this file as well. A solution might be to just copy the file, iff it exists (which it only will do in ubuntu?). |
Note: there is a ticket that perhaps will lead to changes regarding this file in the future. |
I agree with @nilason, we do a lot of customization to the shells already as opposed to just using them "as is", so we are kind of committed here to dealing with different platform or shell specific issues. The "copy if it exists" is quite reasonable and simple enough. |
I'll take this on, since I'm already poking at grass.py :) |
Create <mapset>/.sudo_as_admin_successful when $HOME/.sudo_as_admin_successful exists to avoid message about sudo for the a Bash instance for each session. Contains several unrelated Black changes. Fixes #753.
Create <mapset>/.sudo_as_admin_successful when $HOME/.sudo_as_admin_successful exists to avoid message about sudo for the a Bash instance for each session. Contains several unrelated Black changes. Fixes OSGeo#753.
Create <mapset>/.sudo_as_admin_successful when $HOME/.sudo_as_admin_successful exists to avoid message about sudo for the a Bash instance for each session. Contains several unrelated Black changes. Fixes OSGeo#753.
Create <mapset>/.sudo_as_admin_successful when $HOME/.sudo_as_admin_successful exists to avoid message about sudo for the a Bash instance for each session. Contains several unrelated Black changes. Fixes OSGeo#753.
Create <mapset>/.sudo_as_admin_successful when $HOME/.sudo_as_admin_successful exists to avoid message about sudo for the a Bash instance for each session. Contains several unrelated Black changes. Fixes OSGeo#753.
The message after starting GRASS GIS in CLI contains the following on Linux with Bash:
This is caused by a file
.sudo_as_admin_successful
missing from the "fake" home directory GRASS GIS uses to start the shell inlib/init/grass.py
.One solution would be to reduce the tricks done in grass.py which would than pick up the
~/.sudo_as_admin_successful
file. Another much simple is to create this file in the "fake" home.The "fake" home is the mapset, so maybe probably creating and deleting it later is desired or perhaps some "try create" is the best.
The simpler solution with just creating the file makes this actually a good first issue. No reworking of "fake" home tricks in grass.py is needed to resolve this issue.
The text was updated successfully, but these errors were encountered: