Commit Graph

1247 Commits

Author SHA1 Message Date
Marek Marczykowski-Górecki
4e0ab3b46e
Merge remote-tracking branch 'origin/pr/288'
* origin/pr/288:
  Fix too long line
2021-05-30 01:10:15 +02:00
Marek Marczykowski-Górecki
d9c28ef65a
Merge remote-tracking branch 'origin/pr/292'
* origin/pr/292:
  Avoid spurious warnings when setting NetVM
2021-05-30 00:56:27 +02:00
Marek Marczykowski-Górecki
340a28f108
Merge remote-tracking branch 'origin/pr/291'
* origin/pr/291:
  mock QubesVMNotFoundError
  manager: Handle removal of VM during on_shutdown.
2021-05-30 00:56:24 +02:00
Marek Marczykowski-Górecki
4420e52d0d
Merge remote-tracking branch 'origin/pr/288'
* origin/pr/288:
  Add check before launch qvm_start()
  Fix main()
  Fix pylint warning
  Added parent to all __init__()
  Retored reject() connect
  Revert "Restored reject() call with ui"
  Restored reject() call with ui
  Close dialog after finish qvm_start()
  Fix pylint warning
  Fix 'Line too long'
  Added bootfromdevice dialog to create_new_vm (instead subprocess.call)
  Removed unneeded reject() definition
  Use vm.name instead vm object
  Removed unneded reject() definition
  Removed qvm_start call from bootfromdevice
  Improved window size and margins
2021-05-30 00:56:15 +02:00
Marek Marczykowski-Górecki
aaf99091ef
Merge remote-tracking branch 'origin/pr/281'
* origin/pr/281:
  Tests suite fixes
  Use internal vm.shutdown_timeout
  Fix pylint warning
  Show all non halted vm's as running
  use force=True when restarting a netvm with connected vms
  Join all connected VM's in same warning
  Rewrite without cascade var
  Don't wait!
  First initiate shutdown for all vm's, then wait
  Fix wrong identation (thanks pylint)
  Avoid infite loop while waiting vm to shutdown
  Fix pylint warnings
  Cascade shutdown
2021-05-30 00:56:11 +02:00
Marek Marczykowski-Górecki
251c5fd326
Fix too long line 2021-05-29 23:23:52 +02:00
donoban
d86c254031
Merge branch 'master' of https://github.com/QubesOS/qubes-manager into cascade 2021-05-22 11:39:27 +02:00
Saswat Padhi
bf37bb366e
Avoid spurious warnings when setting NetVM
Qube Manager currently shows a security warning when changing the NetVM of TemplateVMs.
This warning is generally useful, but not when disabling networking;
for example changing the NetVM from from "default" to "none".

In this chnage I suppress the warning when the NetVM for a TemplateVM is changed to "none".
2021-05-15 18:32:18 -04:00
donoban
5558127b6f
Add check before launch qvm_start() 2021-04-10 19:16:12 +02:00
donoban
be39ec86f9
Fix main() 2021-04-10 18:54:28 +02:00
3hhh
72cbec7645
manager: Handle removal of VM during on_shutdown.
Fixes QubesOS/qubes-issues#5105
2021-04-09 17:55:57 +02:00
Marek Marczykowski-Górecki
1afd46da6b
Make pylint happy 2021-04-05 16:29:35 +02:00
Marek Marczykowski-Górecki
0e1c9cfeb9
Merge remote-tracking branch 'origin/pr/289'
* origin/pr/289:
  Fix spelling mistake in warning message
2021-04-05 15:41:48 +02:00
Marek Marczykowski-Górecki
29afe2a088
Merge remote-tracking branch 'origin/pr/290'
* origin/pr/290:
  Pass the command line arguments to LogDialog
2021-04-05 15:41:27 +02:00
Marek Marczykowski-Górecki
b2c40eb578
Merge remote-tracking branch 'origin/pr/258'
* origin/pr/258:
  qvm-template-gui: auto resize columns to the content
  qvm-template-gui: change date format to '%d %b %Y'
  qvm-template-gui: UX improvements
  Make pylint happy
  qvm-template-gui: improve displaying progress
  qvm-template-gui: UI improvements
  qvm-template: Include files in deb/rpm package
  qvm-template: Change size unit from kB to MB.
  qvm-template: Disable multi-selection for simplicity.
  qvm-template: Port initial code to PyQt.
  qvm-template: Initial GUI implementation.
2021-04-05 15:41:13 +02:00
Marek Marczykowski-Górecki
fcf5db817f
qvm-template-gui: auto resize columns to the content 2021-04-03 19:07:06 +02:00
Marek Marczykowski-Górecki
6c9514c034
qvm-template-gui: change date format to '%d %b %Y'
Make it always include month as a word, to less overwhelm the user with
a table full of numbers.
2021-04-03 19:07:06 +02:00
Marek Marczykowski-Górecki
099bbe99aa
qvm-template-gui: UX improvements
- hide license, URL and summary - those are the same for all the templates, and
  not really useful for the user
- remove repeated "Time" word from column headers
- use full "Repository" word as the column header
2021-04-03 19:07:06 +02:00
Demi Marie Obenour
883ae3b082
Pass the command line arguments to LogDialog
instead of only the first one.  That caused argv[1] to be iterated over,
meaning that LogDialog would see it as a list of one-character
filenames.  Hilarity ensued.
2021-04-02 23:39:45 -04:00
Marek Marczykowski-Górecki
be4e2050a1
Make pylint happy 2021-04-02 05:39:42 +02:00
Marek Marczykowski-Górecki
03a34fbedd
qvm-template-gui: improve displaying progress
The final version of qvm-template does not display untrusted data, so it
is safe to decode UTF-8. Specifically, this shows download progress bar
done using tqdm library.
For this to work, \r needs to be properly handled, as tqdm uses it to
erase the current line to update progress status. Since QTextEdit does
not support it natively, add a simple wrapper for this job.
Alternatively, qvm-template could be modified to display
machine-readable progress info that would be passed through QT progress
widget, but it would basically duplicate the work already done by tqdm
library. We might do this at some point, though.

And also enlarge progress window default size, to avoid wrapping.
2021-04-02 05:39:35 +02:00
Marek Marczykowski-Górecki
679a23980d
qvm-template-gui: UI improvements
- rename "install" button to "apply" - it also does remove and
  reinstall
- show button descriptions always
- show help text always, not only before selecting anything
- make the window a bit wider
2021-04-02 02:58:24 +02:00
Encrypted Giraffe
2e548f955c
Fix spelling mistake in warning message 2021-03-30 01:32:40 -06:00
donoban
f1f80556dc
Fix pylint warning 2021-03-15 21:12:59 +01:00
donoban
a90642712b
Added parent to all __init__() 2021-03-15 15:13:59 +01:00
donoban
9fc151b1c9
Retored reject() connect 2021-03-14 18:29:32 +01:00
donoban
f050c9d78c
Close dialog after finish qvm_start()
If not user has few seconds of unresponsive manager
2021-03-14 14:02:31 +01:00
donoban
012256d446
Fix pylint warning 2021-03-14 13:27:00 +01:00
donoban
f0d8b71b22
Fix 'Line too long' 2021-03-14 13:24:55 +01:00
donoban
cbae4f5868
Added bootfromdevice dialog to create_new_vm (instead subprocess.call) 2021-03-14 13:23:43 +01:00
donoban
70ea6e2591
Removed unneeded reject() definition 2021-03-14 13:22:25 +01:00
donoban
094ec99829
Use vm.name instead vm object
This helps create_new_vm since we don't have the vm yet
2021-03-14 13:21:24 +01:00
donoban
31f4297c7d
Removed unneded reject() definition 2021-03-14 00:24:51 +01:00
donoban
57130043e3
Removed qvm_start call from bootfromdevice
Returns cdrom_location and handles it from caller
2021-03-14 00:20:08 +01:00
donoban
f5c025216a
Tests suite fixes 2021-02-27 13:19:09 +01:00
Marek Marczykowski-Górecki
465d66189a
tests: changing netvm and template via right click 2021-02-25 02:30:47 +01:00
Marek Marczykowski-Górecki
66e478d968
tests: add a decorator for keeping event listener alive
This is useful for tests causing events in qube manager itsef (not just
external qvm-prefs calls). If event listener isn't connected at this
time, qube manager won't receive them and also qubesadmin internal cache
won't be refreshed.
2021-02-25 02:28:38 +01:00
donoban
aa0ec0e45d
Use internal vm.shutdown_timeout 2021-02-24 16:18:31 +01:00
Marek Marczykowski-Górecki
1e36eb9d30
Restore checkboxes to show/hide columns 2021-02-24 03:59:02 +01:00
Marek Marczykowski-Górecki
d253b50545
Merge remote-tracking branch 'origin/pr/273'
* origin/pr/273: (24 commits)
  Fix coherence in network menu when adding/removing domains
  Fix too long line
  Add warning if trying to change template VM
  Disable network menu for templates
  Display default netvm
  Fix possible 'None' default error
  Added default option for network change
  Wrap warnings message in self.tr()
  Added wait argument to start_vm
  Better dialog creation
  Added try/except for starting netvm
  Added error message to dialogs
  Added proper error handling and Check netvm_name is not None
  Changed checkboxes to icons
  Added change network confirmation
  Added Template Change Confirmation
  Moved change_* funcs after __init__()
  Added QMessageBox if netvm is halted and user wants to start it
  Added network_menu updates
  Added try/except for change_network
  ...
2021-02-24 02:29:13 +01:00
donoban
47b0bef3e2
Fix pylint warning 2021-02-17 10:56:29 +01:00
donoban
6276373fff
Show all non halted vm's as running 2021-02-17 10:55:20 +01:00
donoban
60dbeabfb4
use force=True when restarting a netvm with connected vms 2021-02-16 22:08:51 +01:00
donoban
7a0bc9b863
Join all connected VM's in same warning 2021-02-16 21:28:32 +01:00
donoban
8034060896
Fix coherence in network menu when adding/removing domains 2021-02-09 21:11:35 +01:00
donoban
4e6cf91f63
Fix too long line 2021-02-03 00:07:41 +01:00
donoban
1edc4effd8
Add warning if trying to change template VM 2021-02-03 00:05:37 +01:00
donoban
37513dec7e
Disable network menu for templates 2021-02-03 00:04:30 +01:00
donoban
c4da25c6b7
Just warning message improve 2021-01-28 21:08:11 +01:00
donoban
28120f3a8f
Rewrite without cascade var 2021-01-27 09:30:21 +01:00