Skip to content

Fails to read config file containing ':' #239

@dancleaver

Description

@dancleaver

Step 1: Describe your environment

  • System (Intel/AMD/Raspberry Pi etc):
Processors: 12 × 12th Gen Intel® Core™ i5-12400F
Memory: 16 GiB of RAM (15.5 GiB usable)
Graphics Processor: AMD Radeon RX 6700 XT
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7D43
  • OS version: Fedora Linux 42, Kernel version: 6.15.9-201.fc42.x86_64 (64-bit)
  • s-tui version:
s-tui 1.1.6 - (C) 2017-2020 Alex Manuskin, Gil Tsuker
    Released under GNU GPLv2
  • Installation method(pip/PPA/source code): Fedora dnf

Step 2: Describe the problem:

Observed Results:

At startup, s-tui uses a value of True for all [Temp,Summaries] config entries instead of what is present in the config file.

Debug Results, output of s-tui -d created in a file _s-tui.log:

Log from first invocation (steps 1-3 below): 1.log

Log from second invocation (steps 6-9 below): 2.log

Step 3: Reproduce the problem:

Steps to reproduce:

All of the below steps were done as the root user. (su -, not sudo)

  1. Run s-tui. Go to Control Options > Summaries. Turn off all items under the Temp column, then hit Apply.
  2. Observe that all the temperature summaries are gone, as expected.
  3. Hit Save Settings, then Quit.
  4. Open the config file. (vim /root/.config/s-tui/s-tui.conf)
  5. Observe that all [Temp,Summaries] entries are set to False, as expected.
  6. Close the config file and run s-tui again.
  7. Observe that all the temperature summaries are present again.
  8. Go to Control Options > Summaries. Observe that all Temp settings are all turned on.
  9. Hit Cancel, then Quit (without saving settings).
  10. Open the config file again. Observe that the the [Temp,Summaries] entries are still set to False, despite what was shown inside s-tui.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions