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:
Christian Dywan 2010-09-30 23:51:46 +02:00
parent 08691b7745
commit 3bb34f9f9b

View file

@ -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;
}