Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support window icons on Wayland #2087

Merged
merged 2 commits into from
Dec 26, 2023

Conversation

lmoureaux
Copy link
Contributor

On Wayland, window icons are taken from .desktop files. This PR adds support for this.

  • The client desktop file is renamed to match the one installed by Flatpak
  • Desktop file names are provided to QApplication

I used the normal desktop file name for the modpack installer; Flatpak installs a different one.
The Flatpak manifest will need small changes to accommodate the renamed files.

This syncs with Flatpak usage, allowing the use of a single desktop file name
on all platform. (Flatpak is very opinionated.) This will be useful to set the
desktop file name on the QApplication.

Related to longturn#2019, longturn#984.
This gives us window icons on Wayland.

Related to longturn#2019, longturn#984.
Copy link
Collaborator

@jwrober jwrober left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. I had to use rename commands to meet the flatpak requirements. We won't need those with this change.

@lmoureaux
Copy link
Contributor Author

Agreed. I had to use rename commands to meet the flatpak requirements. We won't need those with this change.

Should I also rename the modpack installer desktop file to please the Flatpak gatekeepers?

@jwrober
Copy link
Collaborator

jwrober commented Dec 25, 2023

Should I also rename the modpack installer desktop file to please the Flatpak gatekeepers?

No it passed muster the first time.

@lmoureaux
Copy link
Contributor Author

Should I also rename the modpack installer desktop file to please the Flatpak gatekeepers?

No it passed muster the first time.

Ah we just renamed it to remove the -qt at the end, hence my confusion.

@lmoureaux lmoureaux merged commit b204f10 into longturn:master Dec 26, 2023
19 checks passed
@lmoureaux lmoureaux deleted the feature/wayland-window-icons branch December 26, 2023 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants