Your message dated Sun, 21 Apr 2024 11:36:00 +0000
with message-id <[email protected]>
and subject line Bug#1051018: fixed in spectrwm 3.5.1-2
has caused the Debian Bug report #1051018,
regarding spectrwm: 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.)
--
1051018: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1051018
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: spectrwm
Version: 3.4.1-3
Severity: normal
User: [email protected]
Usertags: portals.conf
As well as being available as a window manager to integrate into some
larger environment, spectrwm behaves like a very small desktop environment
in its own right, by providing a /usr/share/xsessions/spectrwm.desktop
which can be selected on entry to a display manager such as lightdm.
If it's going to register as a desktop environment, then it should behave
like a desktop environment in other ways, such as choosing an
XDG_CURRENT_DESKTOP identifier.
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/spectrwm-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, spectrwm 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 spectrwm 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 spectrwm
* reboot
* Log in as the user account, selecting "spectrwm" from the menu of
possible X11 sessions
* Open an xterm and run:
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. spectrwm seems to be its
own thing rather than being based on another desktop environment, so
XDG_CURRENT_DESKTOP=spectrwm
would seem appropriate.
This would allow the spectrwm session to have its own
desktop-environment-specific mimeapps.list or portals.conf(5), for
example /usr/share/xdg-desktop-portal/spectrwm-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 spectrwm 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/spectrwm.desktop, most likely just "spectrwm":
DesktopNames=spectrwm;
(For example, icewm and windowmaker use "ICEWM" and "WindowMaker" in
their equivalent xsessions file.)
And then create a /usr/share/xdg-desktop-portal/spectrwm-portals.conf
with whatever portal backends are desired for a spectrwm 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: spectrwm
Source-Version: 3.5.1-2
Done: Andrea Bolognani <[email protected]>
We believe that the bug you reported is fixed in the latest version of
spectrwm, 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.
Andrea Bolognani <[email protected]> (supplier of updated spectrwm 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, 21 Apr 2024 12:43:55 +0200
Source: spectrwm
Architecture: source
Version: 3.5.1-2
Distribution: unstable
Urgency: medium
Maintainer: Andrea Bolognani <[email protected]>
Changed-By: Andrea Bolognani <[email protected]>
Closes: 1051018 1068203
Changes:
spectrwm (3.5.1-2) unstable; urgency=medium
.
* Interoperability
+ Integrate with xdg-desktop-portal
- The GTK portal will be used by default
- Closes: #1051018 (spectrwm: please set XDG_CURRENT_DESKTOP
and use it to configure xdg-desktop-portal)
.
* Package relationships
+ Drop Depends on libxt6
- We don't link to it directly, and libswmhack only tries
to load it when running an application that already links
against (and thus by definition Depends on) the library
- In addition to being unnecessary, the hardcoded dependency
was getting in the way of the 64-bit time_t transition
- Closes: #1068203 (spectrwm: hard-coded dependency on
pre-t64 library)
.
* Standards-Version
+ Update to 4.7.0
- No changes needed
Checksums-Sha1:
2e8354fc5177f3d76450e6bd71dfa8cdf18e806f 2142 spectrwm_3.5.1-2.dsc
29d547694d3609d675a471f33982baf0fd60f1d3 10184 spectrwm_3.5.1-2.debian.tar.xz
d1c79361abed9ebea4cd1833e99939e0313c6e28 8024 spectrwm_3.5.1-2_source.buildinfo
Checksums-Sha256:
ff9ed0888a23eaece44a334a7506b6e4cf2f0118c117f374a03a17bb1506eb73 2142
spectrwm_3.5.1-2.dsc
cb142c5856ecae1eb231ffc7ac8ca5e5543e216bc64e7ef42da919c2eb90bbd1 10184
spectrwm_3.5.1-2.debian.tar.xz
71cd066b9d865555bd6047d079f1ce1d0c7b61172e33ef4c85141cfc88d4285c 8024
spectrwm_3.5.1-2_source.buildinfo
Files:
fd086b4932d9b6d313eb50d13e9e51b1 2142 x11 optional spectrwm_3.5.1-2.dsc
10ae4a02e64625f7468bba40a09229dd 10184 x11 optional
spectrwm_3.5.1-2.debian.tar.xz
13dbdbb6da2a47ab9219e85841336a32 8024 x11 optional
spectrwm_3.5.1-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEO48t9niVypx3EjLf954fxUKFg6wFAmYk8rcACgkQ954fxUKF
g6ymwRAAz+gJF1gWr1y9Wh+K7c7W0Ct73OK2d38Uyjq+9JRNhqA3W4Msj3NANgo/
+dPgVzXeruv5wG5Glrnko0CMjuvkNcdKrR/kRLT58X+VTuCE1nQFu1iduZdSty+K
Gq2XlsP5mBy57saQyvQMhvq/vGLt0/AHFNJxsY/S9GCxECl4eVyOm8pxI8ussa0t
eikWcHrZusKDggZg4UpzZyGUrobStna5P0/A6OeBgxjgwlAwgKRUIuuPV9ACcNM5
qBdHcs3Q2xeYUDSOgn/uxhJN3Q+zIQ3wgxtJ8FzdLAGQbSnL/jNK7K9u0+uC7wxJ
P6v+jJEOL+CTbirqaxJFcAIvzb+jExTPy7GVFoHldpUFHjCMKlaTqb2WRBgStzzN
okBWfdK+ovgOjKK6T7g1a6HRD87+t/EYQCwbdx+3kOcfzCGHAkFFRWYrNd4COM49
eWfN0q2w2Vxyfazfa+PdNR09ygYNq1Cx49iBwypGQLqGIwDKLqxnHiS+ynxxL132
GX1TB9Q2ZYccxsDMJvO9jfZe8y0xIW/N5JkysRX3+0bfZ0EY76rNEVeCC7prYtnK
V5tdzKOF/23t1ZgQQJ48xO3iB1wVwODjsYKD5Zi7UGNdyzMsahk/8AoDuHLB+5gq
P5MOqNeNZhnJvUVnPTZF4nKi5711ZK4tOB/iA0SqLjdIT+ofkho=
=jG3Z
-----END PGP SIGNATURE-----
pgpv5nxBWk1r7.pgp
Description: PGP signature
--- End Message ---