Comments (5)
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?
- 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.
- 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.
- Other possibilities?
How to do communication between GUI process and root process?
- DBUS between GUI process and root process. Security? Then every other program might talk to root process.
- XMLRPC between GUI process and root process. Security? Then every other program might talk to root process.
- Other possibilities?
from lenovolegionlinux.
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.
@MrDuartePT is it documented somewhere how to package it without needing root? If so I can try to do that for NixOS
from lenovolegionlinux.
@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.
For anyone on NixOS there is a open PR that adds the changes here: NixOS/nixpkgs#263760
from lenovolegionlinux.
Related Issues (20)
- Ideapad Gaming 3i 15ARH05 works.
- [BUG] Fancurve not showing and EC Chip ID not 8227 HOT 2
- y9000x 2022 i5 , sound disabled HOT 1
- support for Yoga Pro 7 14IRH8 HOT 3
- Legion Go support
- [Legion Slim 5 16APH8] Can't set up the LLL tool on EOS HOT 1
- [Question] Is `system76-power` conflict with LenovoLegion module ? HOT 2
- Confused: Is there a COPR for LLL? (copr.fedorainfracloud.org) HOT 4
- Automatically set the Energy Performance Preference (EPP) HOT 1
- [BUG] Y-Logo light doesn't turn off when toggle is unticked
- fan speed update, ic temp update, RAM temp update.
- how to remove incase if i dont like it? HOT 2
- License Question: Which one was used by this project, GPL-2.0-only or GPL-2.0-or-later HOT 1
- [BUG] dmesg is spammed with "ACPI result for : ACPI buffer length: X" messages HOT 7
- support for Legion Pro 7 16IRX8H - 2023 model
- Error when trying to run the gui HOT 1
- Lenovo Ideapad Gaming 3 15IHU6 (8K21) support HOT 12
- Support for 82K2 IdeaPad Gaming 3 15ACH6
- Support Legion Pro 5 16IRX9 (2024) HOT 3
- Power mode not shown in KDE "battery and brightness" menu
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lenovolegionlinux.