Git Product home page Git Product logo

Comments (5)

johnfanv2 avatar johnfanv2 commented on May 18, 2024 1

Good idea. This would also make it possible to create working a system tray menu.

Do you have an idea how to implement it? Do you know other programs that have to deal with the same problem and already found a solution?

How to run the root program?

  1. Start a background process running as root and a GUI process running as user. One might have to start the program with root which spans the GUI process with user privileges. Or the GUI program is started with user privileges and asks for a password to start the root program.
  2. Start a root process each time a file with root access is written. That is almost any time a attribute of the laptop if changed. The user might be asked each time.
  3. Other possibilities?

How to do communication between GUI process and root process?

  1. DBUS between GUI process and root process. Security? Then every other program might talk to root process.
  2. XMLRPC between GUI process and root process. Security? Then every other program might talk to root process.
  3. Other possibilities?

from lenovolegionlinux.

MrDuartePT avatar MrDuartePT commented on May 18, 2024

The gui now a day can be run as root and non root the packager can alter the python setup.cfg file to not install the files needed to run as root.
@ulrikstrid @johnfanv2 you think this issue can be close?

from lenovolegionlinux.

ulrikstrid avatar ulrikstrid commented on May 18, 2024

@MrDuartePT is it documented somewhere how to package it without needing root? If so I can try to do that for NixOS

from lenovolegionlinux.

MrDuartePT avatar MrDuartePT commented on May 18, 2024

@ulrikstrid you can run the gui without root buy using this command
legion_gui --use_legion_cli_to_write
And also just include this desktop file in the nix package:
https://github.com/johnfanv2/LenovoLegionLinux/blob/main/python/legion_linux/legion_linux/legion_gui_user.desktop
you will need to remove line 43 from setup.py

from lenovolegionlinux.

ulrikstrid avatar ulrikstrid commented on May 18, 2024

For anyone on NixOS there is a open PR that adds the changes here: NixOS/nixpkgs#263760

from lenovolegionlinux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.