Skip to content

Commit ab67499

Browse files
committed
Fix #171: Ubuntu desktop files don't launch
1 parent 8480dca commit ab67499

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

command_line.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,6 @@ def make_desktop_file(self, nw_path, export_dest):
950950
icon_path = ''
951951

952952
name = self.project_name()
953-
pdir = self.project_dir()
954953

955954
version = self.get_setting('version')
956955
desc = self.get_setting('description')
@@ -962,7 +961,7 @@ def make_desktop_file(self, nw_path, export_dest):
962961
'Version={}\n'
963962
'Name={}\n'
964963
'Comment={}\n'
965-
'Exec={}\n'
964+
'Exec=bash -c \'"$(dirname "$1")"/{}\' x %k\n'
966965
'Icon={}\n'
967966
'Terminal=false\n'
968967
'Type=Application\n'
@@ -973,7 +972,7 @@ def make_desktop_file(self, nw_path, export_dest):
973972
version.value,
974973
name,
975974
desc.value,
976-
nw_path,
975+
name,
977976
icon_path
978977
)
979978

0 commit comments

Comments
 (0)