Comments (3)
Additional info: updated everything to pkexec, but now for some reason the launcher script tapeimgr-pkexec is not extracted during pip install (even though it is in the tarball!).
from tapeimgr.
Missing pkexec fixed by:
Next problem:
- Now initial dir is /root
- Extraction freezes after 1st file; looks like something going wrong with the permissions (chown).
This happens because SUDO_UID
, SUDO_GID
and SUDO_USER
are all undefined when running under pkexec!
Running pkexec with --user $USER
at least results in a valid SUDO_USER
BUT in that case we run as normal user and cannot access the tape device!
Apparently pkexec deliberately blocks most environment variables:
https://stackoverflow.com/questions/42960140/environment-variables-missing-when-executing-via-pkexec
Guymagr (which also uses pkexec) also uses /root as the starting dir.
A possible way to at least start tapeimgr with the user home dir as the default, would be to inject in a config file which is then read back.
from tapeimgr.
All works now.
from tapeimgr.
Related Issues (20)
- Support user installs HOT 1
- Tape device not accessible when tapeimgr is launched from menu HOT 1
- ERROR - 'int' object is not callable at end of run HOT 2
- Add swap Endianness option
- Support for tapes that were written in variable-block mode?
- Add initial value of dirOut (Tape class) to configuration file HOT 1
- Add text fields for identifier, description and notes, write to .json metadata file HOT 1
- Update documentation HOT 1
- Add tool that creates summary CSV file of dir that contains multiple tapes
- Additional check on dd exit status after each file/session? HOT 1
- Change Output Directory behaviour HOT 1
- Verify code for Fill Failed blocks data entry + reset_gui HOT 1
- Boolean flags not read / processed correctly from config file HOT 1
- Fix key bindings HOT 1
- Select tape drive from dropdown list
- tapeimgrVersion mis-spelled in json file
- Make it more easy to insert a UI element / row
- Packages do not match the hashes from the requirements file. HOT 1
- Problem launching tapeimgr HOT 1
- Repeatedly reads only first block 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 tapeimgr.