RackunSec / Summon

Summon Demon Linux
GNU General Public License v3.0
36 stars 9 forks source link

Cannot install UI. Get key error. Same as two closed issues. #7

Open Traphowze opened 1 year ago

Traphowze commented 1 year ago

Installing summon UI fails. /etc/demon/summon.conf is empty. How do I Regen the file as it's supposed to be?

RackunSec commented 1 year ago

Currently there is no code that checks for an empty file, since I assumed ConfigParser was working correctly - as it did in all of my testing. That file should never be empty unless your version of ConfigParser is broken. You can add it to the file manually or you should be able to delete the file and re-run Summon to see if it can make the file properly after asking you if the path is correct.

RackunSec commented 1 year ago

Here is the method that is called each time Summon is ran:

def check_config_file(self):
        if not os.path.exists("/etc/demon/summon.conf"):
            ans=input(f"{self.style.ques} We are running from {self.style.RED}{self.cwd}{self.style.RST} Would you like to make this your Summon binary path [y/n]? ")
            if ans=="y":
                config=ConfigParser()
                config['SUMMON']= {"summon_path":self.cwd}
            with open("/etc/demon/summon.conf","w") as config_file:
                config.write(config_file)

Did Summon ask you the question listed in the code snippet above? Did you get an error when you answered it?

Traphowze commented 1 year ago

No. Summon never asked me anything. It spits the same string that the first issue had listed. Ending with key error SUMMON.

On Tue, Jun 20, 2023, 5:56 PM Douglas Berdeaux @.***> wrote:

Here is the method that is called each time Summon is ran:

def check_config_file(self): if not os.path.exists("/etc/demon/summon.conf"): ans=input(f"{self.style.ques} We are running from {self.style.RED}{self.cwd}{self.style.RST} Would you like to make this your Summon binary path [y/n]? ") if ans=="y": config=ConfigParser() config['SUMMON']= {"summon_path":self.cwd} with open("/etc/demon/summon.conf","w") as config_file: config.write(config_file)

Did Summon ask you the question listed in the code snippet above? Did you get an error when you answered it?

— Reply to this email directly, view it on GitHub https://github.com/RackunSec/Summon/issues/7#issuecomment-1599623590, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAW7D2U76XFZ53D4SBVGOTTXMIMCFANCNFSM6AAAAAAZN3J5L4 . You are receiving this because you authored the thread.Message ID: @.***>