Browse Source

First cd, then execute [terminal] command.

pull/1/head
Gregor Bollerhey 11 years ago
parent
commit
856ac77233
  1. 8
      src/xdgmenumaker

8
src/xdgmenumaker

@ -158,14 +158,14 @@ def get_entry_info(desktopfile):
# removing any %U or %F from the exec line
command = de.getExec().partition('%')[0]
depath = de.getPath()
if depath:
command = 'cd %s && %s' % (depath, command)
use_terminal = de.getTerminal()
if use_terminal is True:
command = '%s -e %s' % (terminal, command)
depath = de.getPath()
if depath:
command = 'cd %s && %s' % (depath, command)
# cleaning up categories and keeping only registered freedesktop.org main categories
categories = de.getCategories()
if 'AudioVideo' in categories:

Loading…
Cancel
Save