Po którejś z ostatnich aktualizacji przestał się uruchamiać Slimbookbattery. Kiedy próbuję go włączyć na pasku na chwilę pojawia się ikonka i znika. Kiedy go uruchamiam w terminalu mam coś takiego
~ slimbookbattery
Slimbook Battery is in execution
Tomek
4 Sierpień 2023 18:25
2
Bug
opened 09:10PM - 03 Jul 23 UTC
bug
**Description**
Slimbook Battery is not starting, it only says "Slimbook Batter… y is in execution". However, no other instance of it is running.
**Evidence**
Steps to reproduce the behavior:
1. Run `slimbookbattery` from terminal
**Desktop (please complete the following information):**
- OS: Arch Linux
- Version: latest Linux kernel as of this ticket (6.4.1)
- Desktop Environment: Plasma Wayland
**Expected behavior**
The Slimbook Battery GUI shows
**Additional context**
It looks like there is a problem with the Python script that starts the GUI. In the snippet below, pgrep returns greater than 1 even though there is no `slimbookbatterypreferences` running:
```python
pgrep = subprocess.getoutput("pgrep -f slimbookbatterypreferences")
num_proc_running = pgrep.split('\n')
if len(num_proc_running) > 1:
sys.stdout.write("Slimbook Battery is in execution\n")
elif args.minimize:
subprocess.run(['/usr/bin/env', 'python3', '/usr/share/slimbookbattery/src/slimbookbatteryindicator.py'])
else:
subprocess.run(['/usr/bin/env', 'python3', '/usr/share/slimbookbattery/src/slimbookbatterypreferences.py'])
```
Output of `pgrep -f slimbookbatterypreferences` is blank:
```
[byte@Lenny ~]$ pgrep -f slimbookbatterypreferences
[byte@Lenny ~]$
```
Na razie możesz albo poczekać na stabilne wydanie albo samodzielnie zbudować pakiet z wydania pre-release.