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

Loading…
Cancel
Save