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

System Variable #60

Open
Maingron opened this issue Jan 22, 2023 · 0 comments
Open

System Variable #60

Maingron opened this issue Jan 22, 2023 · 0 comments

Comments

@Maingron
Copy link
Owner

During showering, I came up with the following idea regarding a system variable, which will, in theory, solve many problems and combine stuff.

Quickly writing down part of a possible system variable reveals the following concept*:
Mainos system{} variable

{
IsVM: false,
user: users[x],
currentUser: users[x],
users: {
  user[0]: {
    programs: {
      ...
    },
    name: "sysacc",
    themecolor: "...",
    language: system.hostOS.languages[0],
    prefersdarkmode: system.hostOS.prefersdarkmode
  },
  user[1]: {
    // Inherit from sysacc unless setting is overridden
  },
  hostOS: {
    languages: Navigator.languages,
    Prefersdarkmode: Navigator.prefersdarkmode,
    operatingSystem: getOSfromBrowserString(),
    browserUsed: getBrowserfromBrowserString()
  },
    time: ...,
  deviceCaps: {
    hasKeyboard: ...,
    hasTouch: ...,
    hasBattery: ...,
  }
}
  • Note that this is a concept and as is, is invalid
Maingron added a commit that referenced this issue Jan 23, 2023
…t everything. Still WIP. See #60

Duplicates are still existing. Cleanups also necessary
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

No branches or pull requests

1 participant