Skip to content

Commit

Permalink
Fix opening Desktop entries with Path
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vkareh authored and flexiondotorg committed Apr 4, 2020
1 parent 6e9dce4 commit 6d29b54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mate_menu/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def RemoveArgs(Execline):
# Actually launch the application
def Launch(cmd, cwd=None):
if cwd:
cmd = cwd + ' ' + cmd
os.chdir(cwd)

app_info = Gio.AppInfo.create_from_commandline(cmd,
None,
Expand Down

0 comments on commit 6d29b54

Please sign in to comment.