Commit 6a04fc5
committed
Merge remote-tracking branch 'origin/pr/243'
* origin/pr/243:
Added root terminal to Domains tray icon menu
Pull request description:
This pull request adds a subtle "Run Root Terminal" option to the Domains tray icon menu, which is very useful when not using `qubes-core-agent-passwordless-root`.
As I've done before, I've tried my best to not change anything about the user experience of the application for most users (as I expect most users to run with `qubes-core-agent-passwordless-root`). The behavior after this patch is that holding the shift key changes the "Run Terminal" command into a "Run Root Terminal" command.
Looking at existing issues, the closest I found was [QubesOS/qubes-issues#9512](QubesOS/qubes-issues#9512), but the use case is different as it is a simpler way of making `qubes-core-agent-passwordless-root` togglable. This is instead a simplified root terminal access, over having to open a Dom0 terminal and start it with `qvm-run`.
~~*Extra considerations*~~:
- ~~I'm not at all familiar with Gtk, and I'm feeling a bit uncertain that signals was the right way to go.~~ *No longer using signals*
- ~~There is a race when smashing the shift key. I don't think it's a performance issue, and not really a UX issue (as the text matches the action that will be performed when terminal is pressed).~~ *I had forgotten that my keyboard has an automatic hold function for the shift key 🤦1 file changed
Lines changed: 68 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
118 | 122 | | |
119 | 123 | | |
120 | 124 | | |
| |||
295 | 299 | | |
296 | 300 | | |
297 | 301 | | |
298 | | - | |
| 302 | + | |
| 303 | + | |
299 | 304 | | |
300 | 305 | | |
301 | | - | |
| 306 | + | |
302 | 307 | | |
303 | 308 | | |
304 | 309 | | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
305 | 322 | | |
306 | 323 | | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
307 | 327 | | |
308 | | - | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
309 | 331 | | |
310 | 332 | | |
311 | 333 | | |
| |||
367 | 389 | | |
368 | 390 | | |
369 | 391 | | |
370 | | - | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
371 | 395 | | |
372 | 396 | | |
373 | 397 | | |
| |||
563 | 587 | | |
564 | 588 | | |
565 | 589 | | |
| 590 | + | |
| 591 | + | |
566 | 592 | | |
567 | 593 | | |
568 | 594 | | |
| |||
651 | 677 | | |
652 | 678 | | |
653 | 679 | | |
| 680 | + | |
| 681 | + | |
654 | 682 | | |
655 | 683 | | |
656 | 684 | | |
| |||
718 | 746 | | |
719 | 747 | | |
720 | 748 | | |
| 749 | + | |
721 | 750 | | |
722 | 751 | | |
723 | 752 | | |
| |||
1069 | 1098 | | |
1070 | 1099 | | |
1071 | 1100 | | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
1072 | 1134 | | |
1073 | 1135 | | |
1074 | 1136 | | |
| |||
0 commit comments