Discussion for Developers #34
Replies: 10 comments 44 replies
-
Great efforts dube.. it's never late to learn.. and make some friends while doing it😇. Now for the first problem. I have specified in python files which files need to run with root privilege like I think when you provide the In theory this will remove the root password requirment whenever a file is run. Which will prevent the file from running atall, but since you provided the file with For the second problem, there need to be minor editing in the indicator.py file which will allow the script to apply changes to the EC as soon as it opens. Since you have accomplished to run the app on startup but it dosent apply the fan curve, little tweaking in the indicator.py will do the magic In the Compile it and test.. if the monitering works without asking for the permissions.. we have made some progress. |
Beta Was this translation helpful? Give feedback.
-
Little update: But example, if i trying to open / double click on UPDATE 2: But again strange that the line code to give to an specific file it doesn't work with the NOPASSWD function, could be because it's run under another syntax the service like the try icon (instead of from the file directly ? ) that it doesn't' match with the NOPASSWD to a specific file? |
Beta Was this translation helpful? Give feedback.
-
Here the reupload: https://we.tl/t-3e6ShJndlh reuploaded with correct icon ....sorry The MSI Icon will appear in your start menu apps |
Beta Was this translation helpful? Give feedback.
-
replace the above command in place of your all commands will do the trick. |
Beta Was this translation helpful? Give feedback.
-
Ok @YoCodingMonster , I explain you what it's going on with those settings and why I changed few syntax to fix some problem and why I changed them (as it needs to be run in different Distros) I'm trying to list you out point by point where are the problems:
These syntax code are wrong , I don't know why, maybe in our days the new Distros menega the sudo install in another waybut the correct syntax are as below (it's for this reason why the people cannot run the app because the code goes in error and doesn't copy the related file into the related folders, this it's the Fix:
I spent a lot of time with test and to discover above fix. Also, the 644 "user" seems it's not suitable to give the rights to copy these files. 2)
it's ok 3)
All the Distros, in our days, it uses the Python3 with Python3.9 ; so what happen when you force to install the Python3.8 , it happen that the software it will not use it because will use the Python3 /3.9 because almost the people use the Python basica and upgradesd that comes with the own Distro (except who is a coder). I tell you this because I already experienced with your software about and I have got this experience from other protects like Piper. Piper it's programmed with an specific Python version and if you don't have this specific version the software will freeze and not work. And to let it work you have to prepare the Enviroment without make a mess with your Distro or force Piper to use one of the Python version that you have installed in your system. But to whom doesn't know it they will say that doesn't work. So, my suggestion it's to not force the people to install the 3.8 because we will face many end user problems and tell them that they have to set the 4)
OK 5) The same story like Python3.8 here should be 6)
OK 7)
Nautilus, if you have a Distro like the one that I'm using that doesn't' have Nautilus as default File Manager, if the end user will not uninstall the default File Manager the software will never use and he will find a lot of software as useless (especially if to the end user likes to use another File Manager) and even in Ubuntu it doesn't influence to overpass the 8 OK 9)
this command should add this voice into 10)
this coding working well and add the voice into sudoers. With the .DEB packages seems it's better because keep the rights to enter better into the system , now it's set to 777 but later I will decrease the user and with the root in this specifi circumstance the software will not find any obstacle of read and write as can meet if the software it's running with the free files ;) PS: The test I made just then with all the installations (even Nautilus and python3.8 and so on) |
Beta Was this translation helpful? Give feedback.
-
So the point
What we should do here? Should be created a Service file or I have to try to write into the GRUB this: |
Beta Was this translation helpful? Give feedback.
-
Congrats Man, it's working 👍 |
Beta Was this translation helpful? Give feedback.
-
Hi @YoCodingMonster , ok I fixed some problems with the packages and finalized everything , now the package can install and uninstall and working well. But still last thing I don't know for which reason the |
Beta Was this translation helpful? Give feedback.
-
@YoCodingMonster , after many tests and differentiation of the coding maybe I got why the |
Beta Was this translation helpful? Give feedback.
-
Excuse me @YoCodingMonster , if text you many times but on so many test that I make i need to centralized where is the exactly problem and finally I got it. Please, be patient so I tell you the story here.
So what happen, it seems that the
Please , when you will have time try to create this new file and finally we have solved everything in this way ;) |
Beta Was this translation helpful? Give feedback.
-
Hi @YoCodingMonster , I open this, to have between us one direct discussion to keep going with the development.
Preface:
So, I have a lot of wishes and passions because I like the coding world , but in coding I still too fresh and without a background school on it. It doesn't mean that I will asking you here the things because I'm lazy or wherever, just because in meantime I fix the things, it also takes me time as I'm study/ learning in real time. So, please try to understand that time to times I need just a support as friend here and to support your project as well.
Now, let's keep going with the project, I successfully created a
.deb
file for easy life for everyone, and also avoid few problems that the people faced.I still need to solve some kind of problems and are below:
To take out the annoying asking sudo password? How we can do, it seems that even after created the .deb packages - that gives the root privilege - the app still ask the password for each option that you are going to choose.
To let the software to run automatically in each every reboot, with the latest fan control chooses (like Normal, Fast , Fastest and so on...). I can successfully run it each every reboot, you can open the Menu by the displayed icon but the software will not start till you will not choose in which Mode you want the Fan to run. It's like fresh run for the system (even if the
conf
file it's created). So, seems that it miss something like[email protected]
that need to run OpenFreezeCenter like[email protected]
, and into it add the command to run the service that Turn On the FAN mechanism automatically . Which is?Now let's solve one by one with the first one, I tell you what i have made to solve it, but unfortunately doesn't work and I run out of ideas now.
I have given to all the files bash and python the high privilege with chmod 777 - 775 and 0755.
I have tried to write with special privilege without asking for the pass word, with the command
sudo visudo
and give the following rights under around of 25 line%sudo
:or even under
root
, like:But it seems that doesn't give any effect on that.
Have you some idea?
Beta Was this translation helpful? Give feedback.
All reactions