https://bugzilla.novell.com/show_bug.cgi?id=430855
User hpj@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=430855#c2
Hans Petter Jansson changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hpj@novell.com
Status|NEEDINFO |NEW
Info Provider|hpj@novell.com |
--- Comment #2 from Hans Petter Jansson 2008-10-07 18:31:43 MDT ---
Elaboration: If you store a command in the list, the parameters will be
remembered - if you open the file a second time and select the new entry from
the list, the previously specified parameters will be passed in. However, they
are not displayed in the list nor in the command entry box.
The API for doing this is GAppInfo in GLib (libgio). The implementation lives
in GDesktopAppInfo in the same dir.
I found the problem: g_app_info_create_from_commandline () (defined in
gdesktopappinfo.c) parses the command line into internal fields. One of the
fields is app_info->binary, which contains only the first word on the line. The
actual command line is stored in app_info->exec.
When you call g_app_info_get_executable (app_info), it will return
app_info->binary. There is no way to get at the app_info->exec field, although
it is used when launching the application.
Nautilus' dialog (nautilus-open-with-dialog.c) is using g_app_info_get_name
(app_info) for the app name column and g_app_info_get_executable () to fill in
the command entry box. For custom commands, both return the "binary" name only.
It looks like we'd have to add API to make this work.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.