[Wayland] Silent fail if libdecor missing from user's system

Open
#1,291 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
65/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
linux
Domain
desktop-dev

Research direction

Locate the Wayland platform initialization code where libdecor is loaded and the terminal warning is printed. Add a modal popup that appears when libdecor is missing, explaining the issue and listing the package name for major distributions. The change should be confined to the platform-specific Wayland code.

Written by the indexing model from the issue text.

Description

crash needs testing platform:linuxbsd

Applies, particularly, to Gnome.
If server-side decorations (title bar, etc...) are not available, Redot uses libdecor to create them client side.
The issue is, this makes libdecor a silent dependency in such cases.

Example with libdecor:
Image

Example without libdecor (libdecor-0-0 package on Ubuntu):
Image

Without libdecor, there's no title bar and no way to resize or move the window around except some precarious keyboard shortucts.
This makes the editor borderline unusable, and the only warning is in the terminal, and even the terminal does not actually confirm libdecor was not found, just "if available..." etc...

Proposed solution would be to have a pop-up explain to the user why their editor is defrocked, and let them know the libdecor package they would have to install to correct the situation on the major Linux distributions.

Dominant language
C++
Stars
6.1k
Forks
337
Avg merge
4d 5h
Merged PRs (30d)
52

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Redot-Engine/redot-engine

All issues in Redot-Engine/redot-engine

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.