You are not logged in.

#1 2020-01-02 17:59:44

coletonn
Member
Registered: 2020-01-02
Posts: 7

SOLVED xprop is not outputting anything or letting me select a window

I don't know where to begin, so I decided to go here. If I run xprop with any combination of syntax, it throws me straight back without any output or the usual selection you can do. Have any of you had this issue before as I am stuck. If it helps, I am trying to find the WINDOW_CLASS that xprop sends, so if no one knows a solution to this conundrum, but knows how to get WINDOW_CLASS without xprop that would also be much appreciated.

Last edited by coletonn (2020-01-03 20:47:35)

Offline

#2 2020-01-02 18:06:55

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: SOLVED xprop is not outputting anything or letting me select a window

Which WM/DE?
X or Wayland?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2020-01-02 18:08:43

coletonn
Member
Registered: 2020-01-02
Posts: 7

Re: SOLVED xprop is not outputting anything or letting me select a window

Slithery wrote:

Which WM/DE?
X or Wayland?

I am using X, probably should've put that I apologize.

Offline

#4 2020-01-02 20:34:45

seth
Member
Registered: 2012-09-03
Posts: 62,267

Re: SOLVED xprop is not outputting anything or letting me select a window

Does "xwininfo" work?

Also output of

type xprop
xwininfo -root
xprop -root

Offline

#5 2020-01-03 17:25:39

coletonn
Member
Registered: 2020-01-02
Posts: 7

Re: SOLVED xprop is not outputting anything or letting me select a window

seth wrote:

Does "xwininfo" work?

Also output of

type xprop
xwininfo -root
xprop -root

xwininfo doesn't output anything

type xprop:

$ type xprop
xprop is /usr/bin/xprop

xwininfo -root doesn't output anything.

xprop -root doesn't output anything.

Offline

#6 2020-01-03 17:28:22

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: SOLVED xprop is not outputting anything or letting me select a window

coletonn wrote:
Slithery wrote:

Which WM/DE?
X or Wayland?

I am using X, probably should've put that I apologize.

They were two separate questions, you only answered one of them...


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#7 2020-01-03 19:01:04

coletonn
Member
Registered: 2020-01-02
Posts: 7

Re: SOLVED xprop is not outputting anything or letting me select a window

Slithery wrote:
coletonn wrote:
Slithery wrote:

Which WM/DE?
X or Wayland?

I am using X, probably should've put that I apologize.

They were two separate questions, you only answered one of them...

I apologize, I thought the second question was giving me options, my mistake. I am using i3-gaps, the main reason I want window class names is so I can lock certain applications to a workspace by default.

Edit:
added the gaps to i3-gaps

Last edited by coletonn (2020-01-03 19:01:35)

Offline

#8 2020-01-03 19:58:34

seth
Member
Registered: 2012-09-03
Posts: 62,267

Re: SOLVED xprop is not outputting anything or letting me select a window

"doesn't output *anything*" is terribly odd…

file /usr/bin/xprop
pacman -Qkk xorg-xprop
xdpyinfo | head -n100

And please post your xorg log.

Offline

#9 2020-01-03 20:31:17

coletonn
Member
Registered: 2020-01-02
Posts: 7

Re: SOLVED xprop is not outputting anything or letting me select a window

seth wrote:

"doesn't output *anything*" is terribly odd…

file /usr/bin/xprop
pacman -Qkk xorg-xprop
xdpyinfo | head -n100

And please post your xorg log.

I know I thought the same thing.

file /usr/bin/xprop:

$ file /usr/bin/xprop   
/usr/bin/xprop: empty

That doesn't seem right...

pacman -Qkk xorg-xprop:

$ pacman -Qkk xorg-xprop
error: error while reading file /var/lib/pacman/local/xorg-xprop-1.2.4-1/mtree: Unrecognized archive format
xorg-xprop: no mtree file

xdpyinfo | head -n100:

$ xdpyinfo | head -n100
name of display:    :0
version number:    11.0
vendor string:    The X.Org Foundation
vendor release number:    12006000
X.Org version: 1.20.6
maximum request size:  16777212 bytes
motion buffer size:  256
bitmap unit, bit order, padding:    32, LSBFirst, 32
image byte order:    LSBFirst
number of supported pixmap formats:    7
supported pixmap formats:
    depth 1, bits_per_pixel 1, scanline_pad 32
    depth 4, bits_per_pixel 8, scanline_pad 32
    depth 8, bits_per_pixel 8, scanline_pad 32
    depth 15, bits_per_pixel 16, scanline_pad 32
    depth 16, bits_per_pixel 16, scanline_pad 32
    depth 24, bits_per_pixel 32, scanline_pad 32
    depth 32, bits_per_pixel 32, scanline_pad 32
keycode range:    minimum 8, maximum 255
focus:  window 0x2600003, revert to PointerRoot
number of extensions:    29
    BIG-REQUESTS
    Composite
    DAMAGE
    DOUBLE-BUFFER
    DPMS
    DRI2
    DRI3
    GLX
    Generic Event Extension
    MIT-SCREEN-SAVER
    MIT-SHM
    Present
    RANDR
    RECORD
    RENDER
    SECURITY
    SHAPE
    SYNC
    X-Resource
    XC-MISC
    XFIXES
    XFree86-DGA
    XFree86-VidModeExtension
    XINERAMA
    XInputExtension
    XKEYBOARD
    XTEST
    XVideo
    XVideo-MotionCompensation
default screen number:    0
number of screens:    1

screen #0:
  dimensions:    3200x1080 pixels (846x285 millimeters)
  resolution:    96x96 dots per inch
  depths (7):    24, 1, 4, 8, 15, 16, 32
  root window id:    0x6bb
  depth of root window:    24 planes
  number of colormaps:    minimum 1, maximum 1
  default colormap:    0x20
  default number of colormap cells:    256
  preallocated pixels:    black 0, white 16777215
  options:    backing-store WHEN MAPPED, save-unders NO
  largest cursor:    64x64
  current input event mask:    0x7a8057
    KeyPressMask             KeyReleaseMask           ButtonPressMask          
    EnterWindowMask          PointerMotionMask        ExposureMask             
    StructureNotifyMask      SubstructureNotifyMask   SubstructureRedirectMask 
    FocusChangeMask          PropertyChangeMask       
  number of visuals:    504
  default visual id:  0x21
  visual:
    visual id:    0x21
    class:    TrueColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff0000, 0xff00, 0xff
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x22
    class:    DirectColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff0000, 0xff00, 0xff
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x4c5
    class:    TrueColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff0000, 0xff00, 0xff
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x4c6
    class:    TrueColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff0000, 0xff00, 0xff
    significant bits in color specification:    8 bits

I did reinstall xprop earlier, but I took this as an opportunity to try it again:

sudo pacman -S xorg-xprop:

sudo pacman -S xorg-xprop
warning: xorg-xprop-1.2.4-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) xorg-xprop-1.2.4-1

Total Installed Size:  0.08 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                                                                              [##########################################################################] 100%
(1/1) checking package integrity                                                                                            [##########################################################################] 100%
(1/1) loading package files                                                                                                 [##########################################################################] 100%
(1/1) checking for file conflicts                                                                                           [##########################################################################] 100%
error: failed to commit transaction (conflicting files)
xorg-xprop: /usr/bin/xprop exists in filesystem
xorg-xprop: /usr/share/licenses/xorg-xprop/COPYING exists in filesystem
xorg-xprop: /usr/share/man/man1/xprop.1.gz exists in filesystem
Errors occurred, no packages were upgraded.

That 0.08 intrigued me, so I decided to delete files causing the "exists in filesystem" error and retry. I reinstalled after, and it now decides to work cool
In my case both xprop and xwininfo are both corrupted, so I had to delete all of these files and then reinstall both respectfully.

These were the files that I had to delete (although your output may be different:)

xprop:

xorg-xprop: /usr/bin/xprop exists in filesystem
xorg-xprop: /usr/share/licenses/xorg-xprop/COPYING exists in filesystem
xorg-xprop: /usr/share/man/man1/xprop.1.gz exists in filesystem

xwininfo

xorg-xwininfo: /usr/bin/xwininfo exists in filesystem
xorg-xwininfo: /usr/share/licenses/xorg-xwininfo/COPYING exists in filesystem
xorg-xwininfo: /usr/share/man/man1/xwininfo.1.gz exists in filesystem

Thank y'all for helping, you guys can mark this as solved (I don't know if I can.)

TL;DR:
I am an idiot, it was corrupted and didn't pay attention to the "pacman -S xorg-xprop xorg-xwininfo" error all that hard. If you run into this issue, xprop/xwininfo is probably corrupted, delete the files listed in the pacman -S output and retry.

Last edited by coletonn (2020-01-03 20:32:30)

Offline

#10 2020-01-03 20:38:14

seth
Member
Registered: 2012-09-03
Posts: 62,267

Re: SOLVED xprop is not outputting anything or letting me select a window

There're possibly more broken packages, run "pacman -Qkk" for a complete check.

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

#11 2020-01-03 20:45:27

coletonn
Member
Registered: 2020-01-02
Posts: 7

Re: SOLVED xprop is not outputting anything or letting me select a window

seth wrote:

There're possibly more broken packages, run "pacman -Qkk" for a complete check.

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Alright, what am I looking for with pacman -Qkk? Should I send my output here or would the pacman wiki article cover it?

Offline

#12 2020-01-03 21:08:52

seth
Member
Registered: 2012-09-03
Posts: 62,267

Re: SOLVED xprop is not outputting anything or letting me select a window

Pretty much everything that doesn't end in ", 0 altered files" (grep -v is gonna be your friend) - some alterations are normal, many mismatches (timestamps, permissions) are harmless, but you might still want to take a look and check general functionality.
Everytime a broken mtree shows up, something's messed up mightily for sure.

Offline

#13 2020-01-03 21:13:36

coletonn
Member
Registered: 2020-01-02
Posts: 7

Re: SOLVED xprop is not outputting anything or letting me select a window

seth wrote:

Pretty much everything that doesn't end in ", 0 altered files" (grep -v is gonna be your friend) - some alterations are normal, many mismatches (timestamps, permissions) are harmless, but you might still want to take a look and check general functionality.
Everytime a broken mtree shows up, something's messed up mightily for sure.

Yeah it seems that some of my xorg packages are completely broken:

sudo pacman -Qkk >> output.txt
[sudo] password for admin: 
warning: accountsservice: /var/lib/AccountsService/icons (Permissions mismatch)
warning: filesystem: /etc/arch-release (Modification time mismatch)
warning: filesystem: /etc/arch-release (Size mismatch)
warning: gtk2: /usr/share/gtk-2.0/gtkrc (UID mismatch)
warning: gtk2: /usr/share/gtk-2.0/gtkrc (GID mismatch)
warning: gtk2: /usr/share/gtk-2.0/gtkrc (Modification time mismatch)
warning: gtk2: /usr/share/gtk-2.0/gtkrc (Size mismatch)
warning: linux: /usr/lib/modules/5.4.7-arch1-1/modules.alias (Modification time mismatch)
warning: linux: /usr/lib/modules/5.4.7-arch1-1/modules.alias.bin (Modification time mismatch)
warning: linux: /usr/lib/modules/5.4.7-arch1-1/modules.builtin.bin (Modification time mismatch)
warning: linux: /usr/lib/modules/5.4.7-arch1-1/modules.dep (Modification time mismatch)
warning: linux: /usr/lib/modules/5.4.7-arch1-1/modules.dep (Size mismatch)
warning: linux: /usr/lib/modules/5.4.7-arch1-1/modules.dep.bin (Modification time mismatch)
warning: linux: /usr/lib/modules/5.4.7-arch1-1/modules.dep.bin (Size mismatch)
warning: linux: /usr/lib/modules/5.4.7-arch1-1/modules.devname (Modification time mismatch)
warning: linux: /usr/lib/modules/5.4.7-arch1-1/modules.softdep (Modification time mismatch)
warning: linux: /usr/lib/modules/5.4.7-arch1-1/modules.symbols (Modification time mismatch)
warning: linux: /usr/lib/modules/5.4.7-arch1-1/modules.symbols (Size mismatch)
warning: linux: /usr/lib/modules/5.4.7-arch1-1/modules.symbols.bin (Modification time mismatch)
warning: linux: /usr/lib/modules/5.4.7-arch1-1/modules.symbols.bin (Size mismatch)
warning: python-setuptools: /usr/bin/easy_install (Modification time mismatch)
warning: python-setuptools: /usr/bin/easy_install-3.8 (Modification time mismatch)
warning: shadow: /usr/bin/newgidmap (Permissions mismatch)
warning: shadow: /usr/bin/newuidmap (Permissions mismatch)
warning: tilix: /usr/share/applications/com.gexperts.Tilix.desktop (Modification time mismatch)
warning: tilix: /usr/share/applications/com.gexperts.Tilix.desktop (Size mismatch)
warning: vlc: /usr/lib/vlc/plugins/plugins.dat (Modification time mismatch)
warning: vlc: /usr/lib/vlc/plugins/plugins.dat (Size mismatch)
warning: xkeyboard-config: /usr/share/X11/xkb/keycodes/evdev (Modification time mismatch)
warning: xkeyboard-config: /usr/share/X11/xkb/rules/base.lst (Modification time mismatch)
warning: xkeyboard-config: /usr/share/X11/xkb/rules/base.lst (Size mismatch)
warning: xorg-xhost: /usr/share/licenses/xorg-xhost/COPYING (Size mismatch)
warning: xorg-xhost: /usr/share/man/man1/xhost.1.gz (Size mismatch)
error: error while reading file /var/lib/pacman/local/xorg-xinput-1.6.3-1/mtree: Unrecognized archive format
error: error while reading file /var/lib/pacman/local/xorg-xkbevd-1.1.4-2/mtree: Unrecognized archive format
error: error while reading file /var/lib/pacman/local/xorg-xkbutils-1.0.4-3/mtree: Unrecognized archive format
error: error while reading file /var/lib/pacman/local/xorg-xkill-1.0.5-1/mtree: Unrecognized archive format
error: error while reading file /var/lib/pacman/local/xorg-xlsatoms-1.1.3-1/mtree: Unrecognized archive format
error: error while reading file /var/lib/pacman/local/xorg-xlsclients-1.1.4-1/mtree: Unrecognized archive format
error: error while reading file /var/lib/pacman/local/xorg-xmodmap-1.0.10-1/mtree: Unrecognized archive format
error: error while reading file /var/lib/pacman/local/xorg-xpr-1.0.5-1/mtree: Unrecognized archive format
error: error while reading file /var/lib/pacman/local/xorg-xrandr-1.5.1-1/mtree: Unrecognized archive format
error: error while reading file /var/lib/pacman/local/xorg-xrdb-1.2.0-1/mtree: Unrecognized archive format
error: error while reading file /var/lib/pacman/local/xorg-xrefresh-1.0.6-1/mtree: Unrecognized archive format
error: error while reading file /var/lib/pacman/local/xorg-xset-1.2.4-1/mtree: Unrecognized archive format
error: error while reading file /var/lib/pacman/local/xorg-xsetroot-1.1.2-1/mtree: Unrecognized archive format
error: error while reading file /var/lib/pacman/local/xorg-xvinfo-1.1.4-1/mtree: Unrecognized archive format
error: error while reading file /var/lib/pacman/local/xorg-xwd-1.0.7-1/mtree: Unrecognized archive format
error: error while reading file /var/lib/pacman/local/xorg-xwud-1.0.5-1/mtree: Unrecognized archive format

I'll reinstall them.

Offline

Board footer

Powered by FluxBB