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

Include Linux DE in OS sysinfo string. #20917

Merged
merged 1 commit into from
Jul 13, 2023
Merged

Conversation

pchote
Copy link
Member

@pchote pchote commented Jun 12, 2023

This PR adds the current desktop environment alongside the OS and display server on Linux. This can inform discussions about whether / how much effort to put into supporting a given DE is worthwhile.

Screenshot 2023-06-12 at 17 25 03

From the Arch wiki:

XDG_CURRENT_DESKTOP is a freedesktop.org variable containing a colon separated list of strings that the current desktop environment identifies as [3]. Standardized values for actively developed environments are GNOME, GNOME-Flashback, KDE, LXDE, LXQt, MATE, TDE, Unity, XFCE, EDE, Cinnamon, Pantheon, and DDE [4].

@Mailaender
Copy link
Member

Squeezing everything into one string won't make evaluations easier.

Copy link
Member

@PunkPun PunkPun left a comment

Choose a reason for hiding this comment

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

LGTM, untested

if (!string.IsNullOrEmpty(sessionType))
sessionType = $" ({sessionType})";

string suffix;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
string suffix;
var suffix = string.Empty;

and then drop the else case.

Copy link
Member

Choose a reason for hiding this comment

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

I think the current setup makes more sense. (Why assign values which will get overwritten anyway?)

@AspectInteractive
Copy link
Contributor

Looks fine from my end.

@PunkPun PunkPun merged commit 7f37454 into OpenRA:bleed Jul 13, 2023
3 checks passed
@PunkPun
Copy link
Member

PunkPun commented Jul 13, 2023

Changelog

@pchote pchote deleted the sysinfo-v6 branch August 24, 2023 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants