SolarLune / masterplan

MasterPlan is a project management software / visual idea board software. It attempts to be easy to use, lightweight, and fun.
https://solarlune.itch.io/masterplan
508 stars 46 forks source link

WMClass tied to version in Linux #41

Closed Neyvermore closed 3 years ago

Neyvermore commented 3 years ago

Hi,

I've bought Masterplan on Linux, so I need to create a desktop file. However, without StartupWMClass in the .desktop, this is what happens : photo_2020-11-20_10-36-54

What should happen is this : photo_2020-11-20_10-36-03

For that, I had to use the xprop | grep WM_CLASS command, which gave me this output : WM_CLASS(STRING) = "MasterPlan v0.6.0", "MasterPlan v0.6.0

The issue here is that I need to add StartupWMClass=Masterplan v0.6.0. to my .desktop file, which means that as soon as I upgrade to i.e. 0.7.0, I'll have to manually change this line. A simple fix would be to change the WM_CLASS to Masterplan, I guess?

SolarLune commented 3 years ago

Yo, it looks like this is set when initializing the window. A fix for this was just pushed (simply setting the title to "MasterPlan" initially, and then changing the title later for version number, open plan file, etc), so WM_CLASS should just be "MasterPlan" now.