1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

Fixed creation of shortcut attributes

This commit is contained in:
Valery Sinelnikov 2024-04-25 15:15:35 +04:00
parent 062ff742c3
commit 9b8529b39b

View File

@ -265,7 +265,7 @@ class shortcut:
else:
self.desktop_file.set('Type', 'Application')
self.desktop_file.set('Name', self.name)
self.desktop_file.set('Name', self.name, locale=True)
desktop_path = self.path
if self.expanded_path:
@ -278,7 +278,7 @@ class shortcut:
terminal_state = str2bool_lambda(self.desktop_file.get('Terminal'))
self.desktop_file.set('Terminal', 'true' if terminal_state else 'false')
self.desktop_file.set('Exec', '{} {}'.format(desktop_path, self.arguments))
self.desktop_file.set('Comment', self.comment)
self.desktop_file.set('Comment', self.comment, locale=True)
if self.icon:
self.desktop_file.set('Icon', self.icon)