Skip to content

Commit afb00d0

Browse files
committed
Add a 'USB' prefix to the symlink name so that the screen can assign a usb icon to the symlink
1 parent e3325bc commit afb00d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

BlocksScreen/devices/storage/udisks2.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import logging
33
import os
44
import pathlib
5+
from tkinter import Label
56
import typing
67
from collections.abc import Coroutine
78
import unicodedata
@@ -482,6 +483,7 @@ def add_symlink(
482483
"""
483484
if not _validated and label:
484485
label = validate_label(label, strict=True)
486+
label = "USB " + label
485487
fallback: str = "USB DRIVE" if _index == 0 else str(f"USB DRIVE {_index}")
486488
dstb = pathlib.Path(dst_path).joinpath(label if label else fallback)
487489
try:

0 commit comments

Comments
 (0)