-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Qubes-specific preconfiguration for Xfce4 #2120
Comments
Suggestion from Niels Kobschätzki: install |
I'm also running into a problem where when I close my laptop lid, my computer doesn't suspend. In Power Manager, General, under Laptop Lid I have "When laptop lid is closed" set to "Suspend" for both on battery and while plugged in. but it doesn't seem to work. Instead when I close the lid, nothing happens, and the screen doesn't even lock. |
@rootkovska I think using salt for this kind of settings isn't good idea. Because it will reset them to those values even if user consciously configured something else. We already have a package for Qubes specific default settings ( |
What should be default for lid close? Suspend or just screen lock? |
On Mon, Jul 11, 2016 at 07:21:42AM -0700, Marek Marczykowski-Górecki wrote:
IMHO most ppl expect S3 sleep after lid close. But we need to ensure screen |
Agualemon WM style results in indistinguishable buttons (close, minimize etc) - because they are all colored in VM label color... |
Why do you think that coloring of buttons helps in any way in deducing their meaning? E.g. what color would you expect to suggests a "close" operation vs "maximize"? :) |
I haven't said that ;) I've said currently they are all the same, so even if originally had different colors (which may or may not help guessing their meaning), now all are the same. |
Actually I see they have different shades ;) I'm more concerned that
black-labeled windows are indistinguishable from gray-labeled ones. Sadly this
seems to be the case for most (all) decorations in Xfce4 I looked at (which do
not look somehow ugly at the same time).
|
Same here, since forever. Colors are defined here: Can you spot what is wrong? |
Anyway, what default window style do you propose? |
I'm currently using "Sassandra" and I think it looks good. The maximize/minimize/quit icons have distinguishable icons regardless of the color. |
I think I've found why black is the same as gray - our patched theme loading function use very similar algorithm to icon coloring - convert color to HSV, then use H and S from VM label, but V from original theme. This is why button shapes are visible at all. |
As for screen locking and system suspend - there are two factors:
The first one is especially interesting for lid close action. Xfce4-power-manager supports both options - either handle it itself or delegate to logind. There is an option for this ( In theory the solution would be to set that property to So I see those options:
I think the last option would be the best, as gives flexibility on screenlocker choice and IMHO is most resilient against breaking screen lock by messing configuration (like switching |
|
On Tue, Jul 12, 2016 at 02:59:54PM -0700, Marek Marczykowski-Górecki wrote:
Perhaps an ugly hack like e.g.: if (label == QUBES_LABEL_BLACK) v = orig_v * 0.1 // or similarly low factor? Because other colors look really nice and we don't want to break them Sure, it's inelegant, but using this reasoning, we find that with current |
(or instead of reboot, switch to text console, stop kdm, start lightdm and login again - this will preserve running VMs and applications)
It isn't us creating such proxy - it already exists. It's very similar to the first case - matter of installing
So, no more short original screen view after system wakeup (which was the case on KDE...). But the same should be apply to BTW As for aesthetics, I very much like default screen locker for i3 - |
Or maybe, we should get rid of black/gray label (one of them) and replace with some other very similar (or totally different ;) )? Personally I haven't used gray label ever (because it's the same as black on Xfce ;) ). |
On Wed, Jul 13, 2016 at 01:44:46AM -0700, Marek Marczykowski-Górecki wrote:
The above doesn't seem to be working. Xfce4 seems to prefer xscreensaver anyway. I use lightdm, and its service is enabled and running via systemctl. |
During suspend? Change lid close action to something else, then back to suspend and close the lid. The other setting (when screen lock is initiated by some xfce-specific mechanism - namely xflock4), you can set it to use the same as light-locker this way:
|
On Wed, Jul 13, 2016 at 08:38:54AM -0700, Marek Marczykowski-Górecki wrote:
Ok, I didn't realize it would only be used for S3 sleep, and not for ordinary Another observation: so after I resume from S3 now with using lightdm +
All in all: a huge regression. |
Of course. When we decide on final solution, it needs to be configured for all the cases (manual lock, inactivity lock, manual suspend, lid close suspend).
I see this too.
It works for me. It it only the case for light-locker? |
With 0.1 buttons are totally invisible. But with 0.2 it is ok :) |
Loads and color appropriate theme parts only when needed - when VM window of particular color is created. While there is still hardcoded table of available labels (converted here to RGB and synced with qubes.py), this change allows adding dynamic color configuration in the future. QubesOS/qubes-issues#2120
xfce4-power-manager now handle it itself. And inhibition of handle-lid-switch disables suspend on lid close at all, as xfce4-power-manager rely on logind to do that. QubesOS/qubes-issues#2120
Use _QUBES_LABEL_COLOR property if present to get desired decoration color. This allows much more flexible configuration than hardcoded labels table. QubesOS/qubes-issues#2120
Otherwise it is the same as gray, because it isn't really a color in HSV color scale. QubesOS/qubes-issues#2120
On Wed, Jul 13, 2016 at 02:14:21PM -0700, Marek Marczykowski-G�recki wrote:
Yes. And I also have an additional observation after using lightdm +
I suspect this might be related to this error I see in the guid log:
|
On Thu, Jul 14, 2016 at 09:37:54AM +0200, Joanna Rutkowska wrote:
Alright, two more comments
|
On Thu, Jul 14, 2016 at 12:38:08AM -0700, Joanna Rutkowska wrote:
I think this is unrelated, as I'm just debugging this on the system Best Regards, |
Apparently light-locker starts new X server to just host screen locker... This is why it takes so long. And indeed this is related to breaking GUI. So, I think we should abandon The other solution is to launch
(not sure if there is GUI for it) |
Here is some comprehensive list of screen locking applications: |
Yes, it may solve one of the problem: focus stealing by just opening new window (like launching something requiring user confirmation) and having focus there.
In the first case, if someone want to fool user into confirming some action, the attacker needs to predict when user will press enter, then:
You can try this by opening terminal, then launching So, in practice this option make the attack only slightly harder, but IMHO makes normal usage much more annoying. Like if I open new window (like "file->open" dialog via Ctrl-O in some application), I need to do additional action (switch focus - one click, or Alt-tab) to do the task. Every time. I think the ultimate solution for focus stealing in qrexec confirmations is to force some delay before allowing to click "OK". Many applications do this already for sensitive actions. For example Firefox for all the open/save dialogs, plugin installation etc.
I've tried this, but it looks to have no effect at all, at least I haven't noticed any. In theory it should be something like "don't give focus to newly created windows, if user is active in the current one". |
I'd like to see a few tweaks to the default Xfce4 configuration we will offer for Qubes OS:
Ideally we could use Salt to enforce the above (and I'm sure many other) customizations?
The text was updated successfully, but these errors were encountered: