[kupfer: 11/67] utils: Remove app_info_for_commandline
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [kupfer: 11/67] utils: Remove app_info_for_commandline
- Date: Sat, 19 Mar 2011 00:58:40 +0000 (UTC)
commit c4fa0df3c690415b3431ba9342d9e53dd0fa8b97
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Tue Mar 15 22:52:27 2011 +0100
utils: Remove app_info_for_commandline
kupfer/utils.py | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/kupfer/utils.py b/kupfer/utils.py
index 354abf4..30ed00b 100644
--- a/kupfer/utils.py
+++ b/kupfer/utils.py
@@ -216,14 +216,6 @@ def spawn_async(argv, in_dir="."):
except gobject.GError, exc:
pretty.print_debug(__name__, "spawn_async", argv, exc)
-def app_info_for_commandline(cli, name=None, in_terminal=False):
- import gio
- flags = gio.APP_INFO_CREATE_NEEDS_TERMINAL if in_terminal else gio.APP_INFO_CREATE_NONE
- if not name:
- name = cli
- item = gio.AppInfo(cli, name, flags)
- return item
-
def argv_for_commandline(cli):
return desktop_parse.parse_argv(cli)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]