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

Linux support? #1

Closed
lemunozm opened this issue Feb 25, 2021 · 6 comments
Closed

Linux support? #1

lemunozm opened this issue Feb 25, 2021 · 6 comments
Labels
help wanted Extra attention is needed

Comments

@lemunozm
Copy link

Hi! are there any ideas for Linux support?

@frewsxcv
Copy link
Collaborator

I don't have a Linux machine so I won't be able to help much, but I'd accept a PR if someone opened one. What is the story for dark mode on Linux? I assume it depends which desktop environment you use

@frewsxcv frewsxcv added the help wanted Extra attention is needed label Feb 26, 2021
@lemunozm
Copy link
Author

Yeah, it depends of the desktop environment. For example for gnome (one of most used), I think it could be reached using gsettings (gtk-rs crate).

@edfloreshz
Copy link
Collaborator

I can help, I already implemented code for KDE Plasma.

@Seirdy
Copy link

Seirdy commented Nov 8, 2021

The cross-platform way to do this on Freedesktop-complaint platforms will be through the color-scheme key of xdg-desktop-portal's org.freedesktop.appearance interface. This will be implemented in GNOME 42 and will probably be implemented across Flatpak with time; libadwaita apps should already support it if available. As this is a Freedesktop standard, I imagine that KDE will follow this path too.

If you want to test this out and have xdg-desktop-portal-gnome and/or xdg-desktop-portal-gtk installed, you should be able to test it out if you install the color-scheme simulator, a portal that provides a shim interface.

@Seirdy
Copy link

Seirdy commented Nov 8, 2021

Turns out that KDE already merged support into xdg-desktop-portal-kde two weeks ago; see MR 52.

So using this interface should grant across the GNOME and KDE desktop portals. By extension, many Flatpak apps will also be supported.

@Be-ing Be-ing mentioned this issue Dec 24, 2021
@frewsxcv
Copy link
Collaborator

frewsxcv commented Jan 6, 2022

#4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants