Tomas-M / xlunch

Graphical app launcher for X with minimal dependencies
http://xlunch.org
GNU General Public License v3.0
220 stars 37 forks source link

is it possible to set WM_CLASS #150

Open Botspot opened 4 months ago

Botspot commented 4 months ago

Xlunch is used in the Pi-Apps project to display a list of apps that could be installed. We use Xlunch in windowed mode, like any other normal program.

On Xorg, everything works perfectly, including transparency and the running app icon. But Wayland does not allow programs to set their icons the same way Xorg does. The Wayland compositor most of us use is Wayfire, which picks its best guess of an appropriate icon based on the WM_CLASS.

In our other GTK windows, we always add a --class=Pi-Apps flag to ensure the icon is set correctly on Wayland. But Xlunch currently has no such option to my knowledge. Would you consider adding it?

PMunch commented 4 months ago

There is --name which sets part of WM_CLASS. But I agree that --class should probably also be implemented

Botspot commented 4 months ago

But I agree that --class should probably also be implemented

Awesome, keep us updated. 👍