Skip to content

Commit

Permalink
Merge pull request #15 from soumyaDghosh/storage-devices
Browse files Browse the repository at this point in the history
added /boot/efi and other similar mountpoints for snaps
  • Loading branch information
Nokse22 authored Sep 30, 2023
2 parents 85aaf0e + ffa82d2 commit a5f3a08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,10 @@ def update_disk_page(self, btn=None):
for partition in partitions:
try:
subtitle = partition['mountpoints'][0]
if subtitle and fnmatch.fnmatch(subtitle, "*snap*"):
if subtitle and fnmatch.fnmatch(subtitle, "/snap"):
subtitle = '/'
if subtitle.startswith('/var/lib/snapd/hostfs/'):
subtitle = subtitle[21:]
except:
try:
subtitle = partition['mountpoint']
Expand Down

0 comments on commit a5f3a08

Please sign in to comment.