Debian Bug report logs - #1111482
gnome-tweaks-autostart-cleanup.sh fails when trying to remove a non-existing file

version graph

Package: gnome-tweaks; Maintainer for gnome-tweaks is Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>; Source for gnome-tweaks is src:gnome-tweaks (PTS, buildd, popcon).

Reported by: Thomas Loimer <thomas.loimer@tuwien.ac.at>

Date: Mon, 18 Aug 2025 13:49:01 UTC

Severity: minor

Tags: patch

Found in version gnome-tweaks/46.1-1

Fixed in version gnome-tweaks/49~rc-1

Done: Jeremy Bícha <jbicha@ubuntu.com>

Bug is archived. No further changes may be made.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>:
Bug#1111482; Package gnome-tweaks. (Mon, 18 Aug 2025 13:49:02 GMT) (full text, mbox, link).


Acknowledgement sent to Thomas Loimer <thomas.loimer@tuwien.ac.at>:
New Bug report received and forwarded. Copy sent to Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>. (Mon, 18 Aug 2025 13:49:02 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Thomas Loimer <thomas.loimer@tuwien.ac.at>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: gnome-tweaks-autostart-cleanup.sh fails when trying to remove a non-existing file
Date: Mon, 18 Aug 2025 15:48:00 +0200
Package: gnome-tweaks
Version: 46.1-1
Severity: minor
Tags: patch

Dear Maintainer,

the script gnome-tweaks-autostart-cleanup.sh contains one command,
rm .config/autostart/ignore-lid-switch-tweak.desktop

This command fails, if the file does not exist. Then,
journalctl --user -b -u user-sesion-migration reports
user-session-migration[..]: Exited with an error
user-session-migration[..]: stdout:
user-session-migration[..]: stderr: rm: cannot remove '.config/autostart/igno..'

The simplest is to provide the -f option to the rm-command,
rm -f .config/autostart/ignore-lid-switch-tweak.desktop

Optionally, test for the existence of the file, and probably also use
XDG_CONFIG_HOME,
test "x$XDG_CONFIG_HOME" = x && config_dir="$HOME/.config" || config_dir="$XDG_CONFIG_HOME"
test -x "$config_dir/autostart" -a test -f "$config_dir/autostart/ignore-lid-switch-tweak.desktop" && \
    rm "$config_dir/autostart/ignore-lid-switch-tweak.desktop"
unset config_dir


-- System Information:
Debian Release: 13.0
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gnome-tweaks depends on:
.
.
ii  user-session-migration                       0.4.3+nmu1



Message sent on to Thomas Loimer <thomas.loimer@tuwien.ac.at>:
Bug#1111482. (Tue, 02 Sep 2025 23:45:01 GMT) (full text, mbox, link).


Message #8 received at 1111482-submitter@bugs.debian.org (full text, mbox, reply):

From: Jeremy Bícha <noreply@salsa.debian.org>
To: 1111482-submitter@bugs.debian.org
Subject: Bug#1111482 marked as pending in gnome-tweaks
Date: Tue, 02 Sep 2025 23:43:02 +0000
Control: tag -1 pending

Hello,

Bug #1111482 in gnome-tweaks reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/gnome-team/gnome-tweaks/-/commit/aeaaa1c0b5d1c1556a090897aa4abaab861cb52c

------------------------------------------------------------------------
autostart-cleanup.sh: don't fail if file to be removed doesn't exist

Closes: #1111482
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1111482



Added tag(s) pending. Request was from Jeremy Bícha <noreply@salsa.debian.org> to 1111482-submitter@bugs.debian.org. (Tue, 02 Sep 2025 23:45:01 GMT) (full text, mbox, link).


Reply sent to Jeremy Bícha <jbicha@ubuntu.com>:
You have taken responsibility. (Tue, 02 Sep 2025 23:51:02 GMT) (full text, mbox, link).


Notification sent to Thomas Loimer <thomas.loimer@tuwien.ac.at>:
Bug acknowledged by developer. (Tue, 02 Sep 2025 23:51:02 GMT) (full text, mbox, link).


Message #15 received at 1111482-close@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1111482-close@bugs.debian.org
Subject: Bug#1111482: fixed in gnome-tweaks 49~rc-1
Date: Tue, 02 Sep 2025 23:48:54 +0000
[Message part 1 (text/plain, inline)]
Source: gnome-tweaks
Source-Version: 49~rc-1
Done: Jeremy Bícha <jbicha@ubuntu.com>

We believe that the bug you reported is fixed in the latest version of
gnome-tweaks, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1111482@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jeremy Bícha <jbicha@ubuntu.com> (supplier of updated gnome-tweaks package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 02 Sep 2025 19:41:15 -0400
Source: gnome-tweaks
Built-For-Profiles: noudeb
Architecture: source
Version: 49~rc-1
Distribution: unstable
Urgency: medium
Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
Changed-By: Jeremy Bícha <jbicha@ubuntu.com>
Closes: 1111482
Changes:
 gnome-tweaks (49~rc-1) unstable; urgency=medium
 .
   * New upstream release
   * autostart-cleanup.sh: don't fail if file to be removed doesn't exist
     (Closes: #1111482)
   * Opt into Salsa CI
   * Remove obsolete Rules-Requires-Root: no field
   * Bump Standards Version to 4.7.2
Checksums-Sha1:
 35262fa8bd86c8d5e9b37a4dd49d1b350c73ffac 2297 gnome-tweaks_49~rc-1.dsc
 1a7574fe53f89ab55e6fc3e882f04fede0e92d3b 695716 gnome-tweaks_49~rc.orig.tar.xz
 31cff9b98ce1243435bca9895b33542405ee6157 8320 gnome-tweaks_49~rc-1.debian.tar.xz
 4af2ae382ddef5a013741ca187657044364a0e4e 17190 gnome-tweaks_49~rc-1_source.buildinfo
Checksums-Sha256:
 a6a5feae747f92b1009c5e4570b0a1fc11c85262a8857c7e16206434f1fd3f58 2297 gnome-tweaks_49~rc-1.dsc
 34e37ce489fbf3bf00f042253b6c035b5fcae59c95b8e552b8a0604fe4e929f4 695716 gnome-tweaks_49~rc.orig.tar.xz
 71c6db7ccab49511857fea507ad23815b014d6f9d58a55600ec3d6bc4266dd51 8320 gnome-tweaks_49~rc-1.debian.tar.xz
 3e1cb8610d810df1343789c365991901856527abddfe348f99ea2546185b7385 17190 gnome-tweaks_49~rc-1_source.buildinfo
Files:
 4511dfbde2e3b37b5a98988a3efa7524 2297 gnome optional gnome-tweaks_49~rc-1.dsc
 6f0823153f71c70993ea05bd7f30b776 695716 gnome optional gnome-tweaks_49~rc.orig.tar.xz
 1dd5596ff16fe7c9d92dec350d0de43e 8320 gnome optional gnome-tweaks_49~rc-1.debian.tar.xz
 6976cf71d00c1cb5d9fecb6d64e95297 17190 gnome optional gnome-tweaks_49~rc-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEETQvhLw5HdtiqzpaW5mx3Wuv+bH0FAmi3gRIACgkQ5mx3Wuv+
bH3oVRAApm66DQDW6hjwRt2OkbdUUoTGYPSLikKoT/2i/e7lP3wijHkP5DzLxJs/
M/RSvr7Owz3HvHVTs3umQHCOD9iq+0aEGV5FNcglrA9Sj/xujliX/tnhxCqRQ+SM
m/3ZKT0WkgxZqJTDFAdUhJkoguziBUEEBCGoePqs4U+CtxUcYwd1gf8e8f7mXhY0
lxVeGHeU/srJMElSbjoQ9MG+cGzGiJxbfWceyNs20gyNV16FdU7crEyiMkWnDzaD
a6CwhqPL6tpT6fkUVl5ZbTIfL9fIK0arGuIPNkI8Nf4uOhoQQzXnMVDa1zijQlzE
w704VxPC5qVUHUiRI/OsP81r6TuL63HQS0aGIia8KPTv2wkenotwol+eEBnu2QFc
4fPbzvABmBblfSgsEP5SMiW1r4FT3KNfrRNm9XD1fOqpl3VRMWpqpgblrnqgsglp
zNxEpUixnJaXEkqPg2CSrlPl2yvRYVN+t7G68FXGwMvZ1s3hPqBQeBBvI6VMno2v
LF9bDvdH6LrhF1ayENA6L77WvTwYrWxuqmD0szBjEntkEZydQny1ytRUHyOuL8dF
PqCprqLyR7F4VvlLcLZa32/6RI9QCmBun4ok9a4kCf2fKZ/HxN5GmuOlvCDsLr3X
bvSWfLnojswYO+TyBXdu3K8uCIH7N0oZtYK2DxZWfAGfF05i/Kk=
=Js7P
-----END PGP SIGNATURE-----

[Message part 2 (application/pgp-signature, inline)]

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 06 Oct 2025 07:28:44 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Jan 23 19:30:48 2026; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.