-
Notifications
You must be signed in to change notification settings - Fork 220
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
Hard-coded path in backintime_qt_pol always starts installed instead of dev version #1361
Comments
Interesting. Can't we just handle the path like it is done in the none-root start script? Lines 20 to 27 in 34359ca
EDIT: I don't like having to much labels but isn't it a good idea to have label for all that polkit- & root-related BIT issues? |
Related to #1349 (only because it also requires to fix the same starter shell script). I will fix this together (after having more understanding of the Wayland background and known issues)... @Germar I think you have "inherited" this implementation but perhaps you can remember ever having discussed the reason to hard code the "BiT (root)" path (eg. security reasons)? |
I decided to not use the code from For |
Yes, I intend to
The current implementation of determining the path of the running Line 24 in 34359ca
is IMHO secure enough but the following line with a relative path Line 28 in 34359ca
could be exploited but is currently required after installing it to The cases like
I would consider out-of-scope for the BiT starter scripts since this cannot be prevented by any clever script design. |
BTW: I will solve the X11 too issue which prevents to start BiT root from the dev folder:
Reason: The polkit policy file grants GUI rights only to the hard-coded installation path and file name backintime/qt/net.launchpad.backintime.policy Lines 19 to 20 in 34359ca
By default For a fix the two mentioned env vars must be set explicitly. See: https://www.freedesktop.org/software/polkit/docs/latest/pkexec.1.html PS: Sorry for writing some lengthy comments here but my intention is to document issues and their solutions so that we have a documentation in case of further problems in the future ("why did we do it that way" ;-) |
👍 I think we should rename
👍 we had
I'd vote for |
Fixing #1575 will make this problem go away. Put this Issue on-hold. |
When I clone the source code from Git for development, debugging or testing purposes I cannot start BiT (root)
from the source code since it always starts the installed version (if any):
backintime/qt/backintime-qt_polkit
Line 9 in 34359ca
Edit:
make --prefix
will most probably also be ignoredExpected behavior:
qt/configure
to the absolute path of the source code (for development)make install
should install the file and replace the path by the installation pathAlternative: Use two different files for dev and installation.
The text was updated successfully, but these errors were encountered: