Can you please check if doing something like this can provide some
useful logging bits to journalctl /usr/bin/gnome-shell ?

diff --git a/locations.js b/locations.js
index 9795f3fd..8b19959c 100644
--- a/locations.js
+++ b/locations.js
@@ -447,6 +447,8 @@ class MountableVolumeAppInfo extends LocationAppInfo {
         });
 
         this._signalsHandler = new Utils.GlobalSignalsHandler();
+        print('Cancellable', this.cancellable, cancellable, 'cancelled', 
this.cancellable?.is_cancelled());
+        cancellable?.connect(c => logError(c, 'Cancellable cancelled'));
 
         const updateAndMonitor = () => {
             this._update();
@@ -629,12 +631,15 @@ class MountableVolumeAppInfo extends LocationAppInfo {
         const operation = new 
ShellMountOperation.ShellMountOperation(removable);
         try {
             if (action === 'mount') {
+                print(action, 'Cancellable', this.cancellable, 'cancelled', 
this.cancellable?.is_cancelled());
                 await this.volume.mount(Gio.MountMountFlags.NONE, 
operation.mountOp,
                     this.cancellable);
             } else if (action === 'unmount') {
+                print(action, 'Cancellable', this.cancellable, 'cancelled', 
this.cancellable?.is_cancelled());
                 await 
this.mount.unmount_with_operation(Gio.MountUnmountFlags.FORCE,
                     operation.mountOp, this.cancellable);
             } else if (action === 'eject') {
+                print(action, 'Cancellable', this.cancellable, 'cancelled', 
this.cancellable?.is_cancelled());
                 await 
removable.eject_with_operation(Gio.MountUnmountFlags.FORCE,
                     operation.mountOp, this.cancellable);
             } else {

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1993054

Title:
  USB key eject does not eject

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell-extension-ubuntu-dock/+bug/1993054/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to