Code editing

qarulin-outgoing-move

OUTGOING_PATH: str = "/home/{user}/QarulinOutgoing"

Replace it by the name of the directory you want to watch

handle_failure_with_gtk(stderr: bytes)

Handle the failure of a qvm-move* operation with Gtk.

Warning

Not implemented and should be replaced by Qt.

handle_failure_with_zenity(stderr: bytes)

Handle the failure of a qvm-move* operation with zenity

notify_error(message)

Print the message in stderr and in a notification

handle_failure_with_notify(stderr: bytes)

Handle failure of move operation with just a notification

get_qube_name(script: list | str = 'qarulin-outgoing-select-qube')

Return the target qube name given by the script

script is the first argument given to a subprocess.run() method, see: qarulin-outgoing-select-qube

move()

Try to move every files in the QarulinOutgoing path.

This is a wrapper around qvm-move, it will trigger the methods above if needed.

qarulin-outgoing-select-qube

This script will be ran in dom0 to allow the user to choose a destination qube. It should print the qube name in the stdout.