xprop issueshttps://gitlab.freedesktop.org/xorg/app/xprop/-/issues2019-03-03T21:21:56Zhttps://gitlab.freedesktop.org/xorg/app/xprop/-/issues/2xprop: quotes are not properly escaped in output of WM_NAME(STRING) as they a...2019-03-03T21:21:56ZBugzilla Migration Userxprop: quotes are not properly escaped in output of WM_NAME(STRING) as they are in _NET_WM_NAME(UTF8_STRING)## Submitted by Alain Kalker
Assigned to **Xorg Project Team**
**[Link to original bug (#66807)](https://bugs.freedesktop.org/show_bug.cgi?id=66807)**
## Description
Found in xprop 1.2.1
Steps to reproduce:
At a VT, no X server ...## Submitted by Alain Kalker
Assigned to **Xorg Project Team**
**[Link to original bug (#66807)](https://bugs.freedesktop.org/show_bug.cgi?id=66807)**
## Description
Found in xprop 1.2.1
Steps to reproduce:
At a VT, no X server or WM running (just to make sure nothing else is interfering):
```
$ cat .xinitrc
exec xterm
$ startx
```
In the xterm that opens, enter:
```
$ cd /tmp
$ mkdir 'dir with "quotes in" its name'
$ cd 'dir with "quotes in" its name'
$ xprop | grep WM_NAME
```
(Click on the xterm window)
Actual output:
```
WM_NAME(STRING) = "miki@miki-desktop:/tmp/dir with "quotes in" its name"
```
Expected output:
```
WM_NAME(STRING) = "miki@miki-desktop:/tmp/dir with \"quotes in\" its name"
```
As a corollary, open a terminal emulator which sets WM_NAME as well as the extended property _NET_WM_NAME:
```
$ vte&
```
In the vte window, enter:
```
$ xprop | grep WM_NAME
```
(click on the vte window)
Actual output:
```
WM_NAME(STRING) = "miki@miki-desktop:/tmp/dir with "quotes in" its name"
_NET_WM_NAME(UTF8_STRING) = "miki@miki-desktop:/tmp/dir with \"quotes in\" its name"
```
Expected output:
```
WM_NAME(STRING) = "miki@miki-desktop:/tmp/dir with \"quotes in\" its name"
_NET_WM_NAME(UTF8_STRING) = "miki@miki-desktop:/tmp/dir with \"quotes in\" its name"
```
As shown, the UTF8_STRING value has quotes properly escaped, the STRING value does not.
As an example of practical implication of this bug, it breaks the script at: https://faq.i3wm.org/question/2172/how-do-i-find-the-criteria-for-use-with-i3-config-commands-like-for_window-eg-to-force-splashscreens-and-dialogs-to-show-in-floating-mode/
which uses the output of xprop to generate window filter criteria.
Kind regards,
Alain Kalkerhttps://gitlab.freedesktop.org/xorg/app/xprop/-/issues/1xprop: please support setting multiple (bitfield?) atoms2023-12-01T14:19:58ZBugzilla Migration Userxprop: please support setting multiple (bitfield?) atoms## Submitted by Michał Górny
Assigned to **Xorg Project Team**
**[Link to original bug (#52633)](https://bugs.freedesktop.org/show_bug.cgi?id=52633)**
## Description
AFAICS xprop is able to read multiple values for an atom propert...## Submitted by Michał Górny
Assigned to **Xorg Project Team**
**[Link to original bug (#52633)](https://bugs.freedesktop.org/show_bug.cgi?id=52633)**
## Description
AFAICS xprop is able to read multiple values for an atom property (separating them in output using ',') but is unable to set multiple values. Could you considering adding such a feature as it was requested by user [1]?
[1]:http://stackoverflow.com/q/11700728/165333
Version: git