Commit 06fd5a0
committed
Fix handling long application names in qubes.StartApp service
Application names longer than 37 chars don't fit in qubesdb name limit
for app-dispvm service entry. Switch to using hash of the name, which
has a constant length. Encode SHA256 of the name using URL-safe base64
(instead of hex) to save some length. And since those entries are
generated automatically, move them out of /qubes-service/ qubesdb tree
(into /hash-app-dispvm/), to not interfere with manual entries.
Fixes QubesOS/qubes-issues#74211 parent 9af5c38 commit 06fd5a0
1 file changed
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
16 | 33 | | |
17 | 34 | | |
18 | 35 | | |
| |||
0 commit comments