Comment 14 for bug 1993054

Revision history for this message
Marco Trevisan (TreviƱo) (3v1n0) wrote :

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 {