-
Notifications
You must be signed in to change notification settings - Fork 268
fix: Systray icon consider restricted privileges of scheduled root-mode or foreign-user backup profiles #2259
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
base: dev
Are you sure you want to change the base?
Conversation
|
I am not sure if this is correct. Regarding As for Also, what puzzles me about the fallback display |
|
Update: Weirdly, this file is only written from (This is true for the dev branch; I haven't investigated the main branch.) |
|
Puh... This gives me a headache. It is far beyond my skills and expertise. 😿 |
|
Maybe it would be easier to only handle ordinary X login sessions. This way, the mechanism using (Actually, the icon doesn't reliably work for me on XWayland on KDE Plasma, because |
|
I wrote:
This is how I imagine my version of Like I have mentioned, this doesn't work with XWayland or X manually started from a VT. I have tested this code only very superficially. |
I am insecure about both solutions. What do you think about using your solution as first, and in case DISPLAY environment variable is not set using my solution? We can not be sure today. We have to bring this into the wild and see. EDIT: To be honest: I’m groping in the dark and making educated guesses. I’m not an expert here. But I also wonder if I can make it more worse than before. 😄 I tried to integrate your solution in the current draft. I need to do more tests with it. Because of the security implications I try to be sure about this desktop-user-determination-thing. In unclear situations the code will give This are the steps the code currently does.
|
|
Looks good to me. I would also suggest another solution that could co-exist with the solution from this PR. However, I do not think it should be implemented now; I would only implement it once IPC mechanisms are fully implemented in BiT. In this solution, there would be an alternative version of the systray-icon script. The user will configure their desktop environment to launch this script when the DE is launched. The script would wait for a signal from BiT. Once it receives the signal, it will show the icon. Because this script would be launched with all necessary envvars, this solution won't need to guess DISPLAY or the session owner, so it will be more reliable. |
|
Hello Samo, I was also thinking about that IPC stuff (see #2260). I understand the basic concept but never used or implemented something like this before. So I did some research about the possible technologies. The plan is to make a prototyp and play around with that stuff to get to a final decision. Currently I vote for Unix Domain Sockets as a compromise between maintainability and flexibility. I was also looking into DBUS and FIFO-sockets (named pipes). DBUS is to complex, hard to understand and maintain. FIFO is to simple/basic and unflexible. Regards, |
...in progress...
The systray icon do use two technics to determine the name of that user owning/running the current desktop session. First
loginctl(systemd) is used. If not not presentwhoandDISPLAYare used.What is still missing: Disabling context menu entries if needed.
Fix #2237