vonshednob / pter

Manage your todo.txt in a commandline user interface (TUI)
https://vonshednob.cc/pter/
MIT License
102 stars 6 forks source link

Creating a Configuration File Prevents QPter from Opening #20

Open Mach3Maelstrom opened 1 year ago

Mach3Maelstrom commented 1 year ago
  1. Created pter.conf at the prescribed file location, with everything but sections commented out.
  2. Run qpter.exe.
  3. Qpter will not run.
  4. Rename config file to temp.conf.
  5. Qpter runs without any adjustments.

System: Windows 11 Pro, version 21H2, OS Build 22000.1098

vonshednob commented 1 year ago

Thanks for the report, I’ll look into it!

vonshednob commented 1 year ago

Sorry, I can’t quite reproduce the issue; I created an "empty" configuration file with only the following content:

[General]
[Keys]
[Editor:Keys]
[Colors]
[Highlight]
[GUI:Keys]
[GUI]
[GUI:Colors]
[GUI:Highlight]

Starting qpter works just fine. I find it possible that I misunderstood the reproduction scenario. Do you mind sharing the bad, i.e. breaking, configuration files?

goyalyashpal commented 1 year ago

replicated after #22:

the %USERPROFILE%/.config/pter/pter.conf states:

font-size=8

it doesn't work when i end the file with a manual newline either, which with cat -vET shows:

font-size=8^M$
vonshednob commented 1 year ago

Hm, interesting, thanks for providing more information! I’ll try that again

vonshednob commented 1 year ago

the %USERPROFILE%/.config/pter/pter.conf states:

font-size=8

Okay, this part I can reproduce, but it’s also not following the required layout of the file.

Please change it to:

[GUI]
font-size=8

This’ll fix your problem, @yashpalgoyal1304

However, I still cannot reproduce the original problem (see above).

goyalyashpal commented 1 year ago

%LOCALAPPDATA%/Programs/Python/ Python\ / share/doc/pter/ example.conf - https://github.com/vonshednob/pter/issues/23#issuecomment-1336116491

so, should the pter.conf go there as well?

vonshednob commented 1 year ago

%LOCALAPPDATA%/Programs/Python/ Python / share/doc/pter/ example.conf

so, should the pter.conf go there as well?

No, the pter.conf should go to %USERPROFILE%/.config/pter/pter.conf.