Fallback to the name of an app info if there's no executable
Apparently on Windows command line and executable can be NULL, but the name appears to be the executable name.
This commit is contained in:
parent
08691b7745
commit
3bb34f9f9b
1 changed files with 2 additions and 0 deletions
|
@ -104,6 +104,8 @@ katze_app_info_get_commandline (GAppInfo* info)
|
|||
#endif
|
||||
if (!exe)
|
||||
exe = g_app_info_get_executable (info);
|
||||
if (!exe)
|
||||
exe = g_app_info_get_name (info);
|
||||
return exe;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue