Skip to content

Commit 6d29b54

Browse files
vkarehflexiondotorg
authored andcommitted
Fix opening Desktop entries with Path
Desktop Entry files can specify a working directory for the path. Instead of prepending that path to the command, we instead change the current working directory in the executable context so that those applications can load correctly.
1 parent 6e9dce4 commit 6d29b54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mate_menu/execute.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def RemoveArgs(Execline):
3636
# Actually launch the application
3737
def Launch(cmd, cwd=None):
3838
if cwd:
39-
cmd = cwd + ' ' + cmd
39+
os.chdir(cwd)
4040

4141
app_info = Gio.AppInfo.create_from_commandline(cmd,
4242
None,

0 commit comments

Comments
 (0)