acenturyandabit / acenturyandabit/mini-miza

get result cannot do splitlines

未关闭
#1 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
1
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

Hi,
on LinuxMint 21.3 Virginia, i adapted in your script in the lines apps and pids.
Then i start your script with
`autohide.py 30&`
and get after the timeout
```
Traceback (most recent call last):
File "/home/USER/bin/autohide.py", line 29, in
_pids = get(["pgrep", app]).splitlines()
AttributeError: 'NoneType' object has no attribute 'splitlines'
```
and the script exits.
Python is python3 v.3.10.6-1~22.04 amd64.
What more data could i collect for you for a possible diagnosis?

--
regards,
-- l0ddej0kk0

贡献指南

这个仓库没有索引到贡献指南

调研方向

Inspect `autohide.py` around line 29 where `_pids = get(["pgrep", app]).splitlines()` is called, then follow the local `get()` helper it uses to confirm when it returns `None`. Reproduce the failure by running the script entrypoint (`autohide.py 30`) with an app name that does not match a running process to verify the same traceback path. Mark it done when the script no longer raises `AttributeError` in that path and continues execution normally.

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
cli
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
55/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。