Public bug reported:

After upgrading to Ubuntu 26.04, `mate-screenshot` hangs when saving a 
screenshot.

The screenshot is captured correctly and the save dialog appears, but
after pressing **Save** the application becomes unresponsive and the
file is not saved. The process remains running and has to be terminated
manually.

System:

```text
Ubuntu 26.04
MATE desktop
mate-utils 1.26.1-1build5
```

Steps to reproduce:

1. Run:

   ```bash
   mate-screenshot --interactive
   ```

2. Take a screenshot.
3. Choose a filename/location.
4. Press **Save**.

Actual result:

`mate-screenshot` hangs and does not complete the save operation.

Expected result:

The screenshot should be saved and `mate-screenshot` should exit
normally.

I traced the problem and found that the screenshot itself is created
correctly as a temporary PNG. The hang occurs later during the save
operation.

This appears to be the same bug already fixed in Debian:

```text
Debian bug #1129377
mate-screenshot hangs when saving to a file after libgdk-pixbuf upgrade
```

Debian fixed it in `mate-utils 1.26.1-2` with:

```text
debian/patches/1002-replace-fork-save-with-sync-save.patch
```

The patch replaces the fork-based save code with synchronous saving.

I applied the Debian patch to the Ubuntu `mate-utils 1.26.1-1build5`
source package, rebuilt it locally as `1.26.1-1build15`, and installed
the rebuilt packages.


I applied the patch in
https://salsa.debian.org/debian-mate-team/mate-utils/-/raw/master/debian/patches/1002-replace-fork-save-with-sync-save.patch

After applying this patch, `mate-screenshot` saves screenshots normally
again.

So the Debian fix should probably be backported to Ubuntu 26.04.


regards
a.

ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: mate-utils 1.26.1-1build5
ProcVersionSignature: Ubuntu 7.0.0-38.38-generic 7.0.14
Uname: Linux 7.0.0-38-generic x86_64
ApportVersion: 2.34.1-0ubuntu0.1
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: MATE
Date: Sat Oct  3 22:03:40 2026
SourcePackage: mate-utils
UpgradeStatus: Upgraded to resolute on 2026-09-30 (3 days ago)

** Affects: mate-utils (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug resolute

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

Title:
  mate-screenshot hangs while saving files

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mate-utils/+bug/2169430/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to