Skip to content

Commit 9a0c11c

Browse files
committed
Merge branch 'wip'
2 parents 0b259ba + 3836ee8 commit 9a0c11c

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

src/window.py

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -381,10 +381,8 @@ def set_compressing_title(self, current_index: int, export_dir: str):
381381
self.main_view_title.set_title(self.get_title())
382382
self.main_view_title.set_subtitle(
383383
# TRANSLATORS: {} represents the path of the directory being
384-
# exported to. Please use “” instead of "", if applicable to your
385-
# language.
386-
_('Exporting to “{}”').format(export_dir)
387-
# TODO: change to show full path after string freeze
384+
# exported to.
385+
_('Exporting to {}').format(export_dir)
388386
)
389387

390388
def set_queued_title(self, daemon: bool) -> None:
@@ -676,12 +674,22 @@ def bulk_compress(self, destination_dir: str) -> None:
676674
tolerance = self.get_tolerance()
677675

678676
dest_file = Gio.File.new_for_path(destination_dir)
677+
679678
dest_info = dest_file.query_info(
680-
'standard::display-name',
679+
'xattr::document-portal.host-path',
681680
Gio.FileQueryInfoFlags.NONE,
682681
None
683682
)
684-
dest_display_name = dest_info.get_display_name()
683+
684+
host_path = dest_info.get_attribute_string(
685+
"xattr::document-portal.host-path"
686+
)
687+
688+
if host_path:
689+
home_path = GLib.get_home_dir()
690+
displayed_dest_path = host_path.replace(home_path, '~')
691+
else:
692+
displayed_dest_path = dest_file.get_path()
685693

686694
source_list = self.sources_list_box.get_all()
687695

@@ -692,7 +700,7 @@ def bulk_compress(self, destination_dir: str) -> None:
692700
)
693701

694702
for i in range(len(source_list)):
695-
self.set_compressing_title(i, dest_display_name)
703+
self.set_compressing_title(i, displayed_dest_path)
696704

697705
video = source_list[i]
698706

0 commit comments

Comments
 (0)