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

Suggestion: Hide desktop entries under Wayland #1100

Closed
LRitzdorf opened this issue Jul 20, 2023 · 1 comment
Closed

Suggestion: Hide desktop entries under Wayland #1100

LRitzdorf opened this issue Jul 20, 2023 · 1 comment

Comments

@LRitzdorf
Copy link

LRitzdorf commented Jul 20, 2023

Platform

Arch Linux (standard 64-bit)

Context

For the past while, I have used i3 with picom, and been generally happy with that setup. However, I'm interested in trying out this newfangled Wayland thing, and to that end have installed Hyprland. Configuring it, and working with autostart functionality in particular, led me to the observation below.

Suggestion

Currently, picom installs a desktop file to facilitate its startup, both as a standard application and an XDG autostart entry. While helpful under X11, both entry types remain active when in a Wayland environment. This is particularly annoying for the autostart entry, since it is clearly not needed when a Wayland compositor is already active. If feasible, the ability to hide both entries under Wayland would be greatly appreciated.

We're obviously somewhat limited by the constraints of the XDG Desktop Entry spec here. Based on some quick research, it seems that while there's no way to detect a Wayland environment directly as such, we might be able to use the NotShowIn or OnlyShowIn keys to similar effect. The downside here is that we'd need to maintain a blacklist or whitelist of DEs and WMs where picom should/can be autostarted, which might be a bit clunky.

If anyone else is aware of a cleaner solution, please let me know! I'd also be happy to PR whatever we come up with.

For ease of referencing: https://wiki.archlinux.org/title/desktop_entries#Hide_desktop_entries

@absolutelynothelix
Copy link
Collaborator

closing as duplicate of #1276.

@absolutelynothelix absolutelynothelix closed this as not planned Won't fix, can't repro, duplicate, stale Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants