Score:0

Can't use xprop on Firefox

pg flag

i've updated my System to Ubuntu 22.04.1 LTS, which runs pretty good so far. But Firefox behaves weird, i can't use xprop | grep WM_CLASS on Firefox Windows. None of the xprop commands are working, the cursor also don't turn to a cross, when i hover a Firefox Window. It works like expected for Chrome, Opera or Thunderbird Windows, but not for Firefox.

I had the issue with the pre-installed snap Version from Firefox, so i uninstalled it and installed Firefox just as a package, but the issue remains. I use [xdotool][1] to reload Browsers via Command, and Firefox Windows are not even recognized at all.

Firefox 105.0.2


Problem solved. I had another cursor issue before and ended up with

MOZ_ENABLE_WAYLAND=1

in /etc/environment

This caused the problem with xprop and xdotool. Chrome, Opera and all the other stuff are running from snap.

Score:1
cn flag

Your Ubuntu system now is running on the new windowing system Wayland instead of the traditional system Xorg. This is fundamentally different, and many of the "good old" tools that interact with Xorg do not work on Wayland.

Some applications that do not support Wayland run on Xorg through an interface laye, xwayland. These tools will continue to work for these applications.

The Snap version of Firefox actually runs on xwayland for me. So for the default version, the tools would work. Firefox installed from third party sources via the APT system natively run on Wayland, so the tools do not work.

You can tell whether an application runs on xwayland if it appears in the output of wmctrl -l in a Wayland session.

So here is why you cannot use xprop.

If these tools are important in your workflow, you still can run Ubuntu on Xorg instead as of old (I personally do). You will loose touchpad functionality, and in particular one-to-one mouse gestures. Wayland supports different scaling factors when using different monitors, Xorg does not. In some cases, Wayland animations may be noticeably more smooth than on Xorg. In the end, you must make the balance and choose for yourself what you prefer to use.

Ypsilon avatar
pg flag
It was really just a snap thing, but also mixed with Wayland. I had former issues with the cursor in Firefox and ended up with this Setting `MOZ_ENABLE_WAYLAND=1` in `/etc/environment` If it's setted, Firefox don't appear in `wmctrl -l` or `xprop`. Great, i can keep my Workflow and Wayland, thx :)
Score:0
cn flag

When you upgraded your system to Ubuntu 22.04 do you recall you got a message saying that Firefox was a SNAP now? If you want to use the features you asked about you need to remove the snap version and install the apt version.

The following commands should do this for you.

sudo snap remove firefox

sudo apt-get install --reinstall firefox

Ypsilon avatar
pg flag
I already removed the Snap Version and installed Firefox via apt, but the issue remains. I can't pick open Firefox windows using `xprop`, the Windows containing Firefox instances are somehow invisible for `xprop`
David avatar
cn flag
Sounds like you are still using the snap version.
Ypsilon avatar
pg flag
My Profile-Directory is now in `/home/me/.mozilla/firefox/...default-release`. It was in a snap directory, but i uninstalled and removed it completely and used apt to reinstall Firefox. Does `xprop` works on your System on Firefox?
vanadium avatar
cn flag
Not related to snap. Just reinstalling firefox will not result in a deb version. Wrong info here.
Ypsilon avatar
pg flag
It was a mix of snap and wayland. I had `MOZ_ENABLE_WAYLAND=1` in `/etc/environment` That caused the problem.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.