Code editing ============ ``qarulin-outgoing-move`` ------------------------- .. py:data:: OUTGOING_PATH :type: str :value: "/home/{user}/QarulinOutgoing" Replace it by the name of the directory you want to watch .. py:function:: 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. .. py:function:: handle_failure_with_zenity(stderr: bytes) Handle the failure of a qvm-move* operation with zenity .. py:function:: notify_error(message) Print the message in stderr and in a notification .. py:function:: handle_failure_with_notify(stderr: bytes) Handle failure of move operation with just a notification .. py:function:: 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 :py:func:`subprocess.run` method, see: `qarulin-outgoing-select-qube` .. py:function:: 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: ``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.