Commit Graph

14 Commits

Author SHA1 Message Date
Alexander Lutsai
77506abb8a
Merge pull request #3 from Syphdias/cull-children
Cull children since the script does not mount parents
2022-06-20 00:13:57 +03:00
João Romeiras Amado
e0db765f81
Fix JSON decode error.
The JSON output from lsblk seems to have some issues that interfere with the `json.loads()` function. Specifically, the value 0B, which is expected to be a string.

By doing a direct replace on the lsblk output for `0B` on `menu.py`, the JSON is parsed and the menu appears.
2022-06-11 01:30:12 +01:00
Syphdias
a13aba5569
Cull children since the script does not mount parents
I don't thing this is entirely correct but I have no example at hand.
You should be able to create a filesystem on e.g. /dev/sde directly without
creating a partition /dev/sde1 first. So, technically this "parent" without
"children" should be mountable.

Since the script does not consider this. This commit filters for
elements/"parents" without "children".

For most cases this will keep the height of the output smaller not to run into a
curses crash. Not ideal and the curses crashes should get looked at, but for now
this will do to reduce crashes with small windows and large amount or block
devices – thanks snap.
2022-03-21 00:14:49 +01:00
Alexander Lutsai
c89d4eed56 update for older version of lsblk and update documentation 2021-06-19 14:51:28 +03:00
Alexander Lutsai
2fa1218ca0 add power off drive functionality 2021-06-12 15:52:06 +03:00
Alexander Lutsai
a7548bee17 open selected mountpoint in the current tab 2021-06-11 15:47:46 +03:00
Alexander Lutsai
0dde4583b7 code formatting 2021-04-26 20:01:48 +03:00
Alexander Lutsai
c0623bd310 many fixes 2021-04-26 19:58:18 +03:00
Alexander Lutsai
47df672c59 show fstype if no other label 2021-04-26 16:31:57 +03:00
Alexander Lutsai
be187c9079 add json validity checks and remove key constants 2021-04-26 16:26:41 +03:00
Alexander Lutsai
29f73fa456 fix help string 2021-04-25 21:35:48 +03:00
Alexander Lutsai
7882eca61b readme 2021-04-25 21:11:15 +03:00
Alexander Lutsai
2b52ada098 change e-mail 2021-04-25 19:32:45 +03:00
Alexander Lutsai
5baa0b4092 first 2021-04-25 19:25:47 +03:00