Your message dated Sun, 30 Nov 2025 12:04:45 +0000
with message-id <[email protected]>
and subject line Bug#1050966: fixed in amiwm 0.22pl2-5
has caused the Debian Bug report #1050966,
regarding amiwm: please set XDG_CURRENT_DESKTOP and use it to configure
xdg-desktop-portal
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1050966: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050966
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: amiwm
Version: 0.21pl2-2
Severity: normal
User: [email protected]
Usertags: portals.conf
As well as being available as a window manager to integrate into some
larger environment, amiwm behaves like a very small desktop environment
in its own right, by providing a /usr/share/xsessions/amiwm.desktop
which can be selected on entry to a display manager such as lightdm.
xdg-desktop-portal 1.17.x introduces a new way to select which portals will
be used for which desktop environments, modelled on mimeapps.list:
- each desktop environment should provide a file like
/usr/share/xdg-desktop-portal/amiwm-portals.conf
- the filename is ${DESKTOP}-portals.conf where ${DESKTOP} is the desktop
environment's entry in $XDG_CURRENT_DESKTOP (the same as the DesktopNames
from /usr/share/{x,wayland-}sessions/*.desktop), folded to lower case
- sysadmins and users can override this via files named portals.conf or
${DESKTOP}-portals.conf in various locations like /etc/xdg-desktop-portal
and ~/.config/xdg-desktop-portal
But as far as I can tell, amiwm doesn't set XDG_CURRENT_DESKTOP, so for
the purposes of this mechanism, it's not programmatically distinguishable
from any other desktop environment or window manager.
XDG_CURRENT_DESKTOP is also used in pre-existing freedesktop.org standards
like the OnlyShowIn/NotShowIn fields for .desktop files, and the ability to
provide a desktop-environment-specific mimeapps.list. Setting
XDG_CURRENT_DESKTOP would allow amiwm to participate in those
specifications.
To reproduce
============
* Start from a basic non-GUI virtual machine (I used autopkgtest-build-qemu)
* Ensure that a user account exists
* apt install lightdm xorg amiwm
* reboot
* Log in as the user account, selecting "amiwm" from the menu of
possible X11 sessions
* Open a terminal and run:
env | grep XDG_CURRENT_DESKTOP
systemctl --user show-environment
(It's the systemd activation environment that matters here, more than
`env`, because xdg-desktop-portal will typically be run as a systemd
user service.)
Expected result
===============
XDG_CURRENT_DESKTOP should be set to a colon-separated sequence of
desktop environment names, most specific first. amiwm seems to be its
own thing rather than being based on another desktop environment, so
XDG_CURRENT_DESKTOP=amiwm
would seem appropriate.
This would allow the amiwm session to have its own
desktop-environment-specific mimeapps.list or portals.conf(5), for
example /usr/share/xdg-desktop-portal/amiwm-portals.conf.
Actual result
=============
XDG_CURRENT_DESKTOP is unset.
This means that xdg-desktop-portal configuration can only be done via a
non-desktop-specific portals.conf, but that's not really something that a
non-opinionated distribution like Debian can usefully ship in a centralized
way, so each user of amiwm who wants a working xdg-desktop-portal will
have to configure it themselves.
At the moment, this is mitigated by xdg-desktop-portal (>= 1.17) having
been patched to fall back to xdg-desktop-portal-gtk as a last-resort
desktop-environment-specific backend, but hard-coding that implementation
isn't really something we should be doing centrally (and the idea was
rejected upstream), so I intend to remove that patch before trixie
is released.
Suggested fix
=============
Add a sequence of semicolon-separated desktop environment names to
/usr/share/xsessions/amiwm.desktop, most likely just "amiwm":
DesktopNames=amiwm;
(For example, icewm and windowmaker use "ICEWM" and "WindowMaker" in
their equivalent xsessions file.)
And then create a /usr/share/xdg-desktop-portal/amiwm-portals.conf
with whatever portal backends are desired for an amiwm session,
for example perhaps this:
[preferred]
default=gtk;
Please see portals.conf(5) or its source code
https://github.com/flatpak/xdg-desktop-portal/blob/main/doc/portals-conf.rst
for full details.
Thanks,
smcv
--
This is part of a mass bug filing:
https://lists.debian.org/debian-devel/2023/08/msg00311.html
--- End Message ---
--- Begin Message ---
Source: amiwm
Source-Version: 0.22pl2-5
Done: Alex Myczko <[email protected]>
We believe that the bug you reported is fixed in the latest version of
amiwm, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Alex Myczko <[email protected]> (supplier of updated amiwm 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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sun, 30 Nov 2025 12:25:51 +0100
Source: amiwm
Architecture: source
Version: 0.22pl2-5
Distribution: unstable
Urgency: medium
Maintainer: Alex Myczko <[email protected]>
Changed-By: Alex Myczko <[email protected]>
Closes: 1050966 1114046
Changes:
amiwm (0.22pl2-5) unstable; urgency=medium
.
* d/rules: set C std to gnu99. (Closes: #1114046)
* d/copyright: bump year.
* d/amiwm.desktop: add DesktopNames=amiwm. (Closes: #1050966)
* d/amiwm-portals.conf: added.
* d/watch: bump to version 5.
Checksums-Sha1:
c30a07f12f6a797f375293bf693e5ab8d2c5dee8 1880 amiwm_0.22pl2-5.dsc
3998127c381431331ce063007ce3d8d9d000d5f3 7496 amiwm_0.22pl2-5.debian.tar.xz
5c31846b53660afbaebd1aa3e181b450c32e8b02 6757 amiwm_0.22pl2-5_source.buildinfo
Checksums-Sha256:
42100d873b77b27450968387f17970df43e16840f7e7318c11a8c8add8fed7cd 1880
amiwm_0.22pl2-5.dsc
10684dd962ff97d26420ed783fd159e6b920b1681123c69c582beb5e821e220d 7496
amiwm_0.22pl2-5.debian.tar.xz
7031b573e0a56735018c467873d5da346c62d176ff988b0c48fd449eeccb5edc 6757
amiwm_0.22pl2-5_source.buildinfo
Files:
68d349b43686b338b6454d0b581b2644 1880 non-free/x11 optional amiwm_0.22pl2-5.dsc
d6032867810b49d0aa41c61de74b9109 7496 non-free/x11 optional
amiwm_0.22pl2-5.debian.tar.xz
862f067e31bd001986fa4af99836a44d 6757 non-free/x11 optional
amiwm_0.22pl2-5_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEtgob82PcExn/Co6JEWhSvN91FcAFAmksLp4ACgkQEWhSvN91
FcAcrhAAm8zd3uqCS3o9WDXvjnxRJSF0y0kc7ap7xg//vT0ldoIdN+ozNMM++MA6
9CLOiwBfqwGOo94MRFHO9JO7xiX8hpdOQZZWVeJKWfHH+09qgHyM/g38wZ3s1McI
pAtHNSlJjgqmcCRGlDR1/f6sm8KQ+0wjHi5Mh9BaBDBf2GsQUoOzDM7wXBREuxz3
dQ8wBJzyeePgaW8mtBm/98YzZddanVW9J/R2EZaIUiCBbVdTEblQz2ktkrsdPeh5
tlKvGVx3rqrrwrrDhhxlfzUjbnJyJ+fYHPzMtTFpeRP4+8CLED8jNGWUdxeQsIwA
uAxtNy7Z5tQkaMCxqUHvXSe/AUQDzQtLUnNW8mGW67hJdfozrdm1AaCD6gATwaf1
OjQEk9RD5eahobBGTtDKOgFa5Cw9SyjBNyIkOQbQL1c9Q0dNvigKgD7oa1LcjnEC
Pl9sLr5VSL8j464P5rkTNHG/NrpO+znWlB1GAHeWUREHkvVgqkfz8I0nmtiSDLuv
LPHkZWq62RkR6UkhaNbgmNYVVqE0Rh4sRKYM/OLqPcKlUcdUeES6bSNBTBhAtdQx
yndCDNQA1L4nNJqsPWLkY4YXMelKeQZj8xqtCBfzJVv1lGS5+8pN098rQVSB61DI
HAbiP4xGwRrtfbC5e/xLuzQXsQ3EYO3jez/sU3sPgJKPKQw0BSY=
=yJnl
-----END PGP SIGNATURE-----
pgpaJkhCGtYnD.pgp
Description: PGP signature
--- End Message ---