diff --git a/src/main.hpp b/src/main.hpp index be7fd516..d6f64305 100644 --- a/src/main.hpp +++ b/src/main.hpp @@ -82,8 +82,8 @@ enum EnumXmlType enum EnumInfo { - InfoPath = 0, - InfoName = 1, + InfoName = 0, + InfoPath = 1, InfoTimestamp = 2, InfoTimer = 3, InfoIconId = 4, diff --git a/src/profile.cpp b/src/profile.cpp index 302cd886..3254addc 100644 --- a/src/profile.cpp +++ b/src/profile.cpp @@ -15,7 +15,12 @@ LONG_PTR _app_getappinfo (size_t app_hash, EnumInfo info_key) if (ptr_app) { - if (info_key == InfoName) + if (info_key == InfoPath) + { + if (!_r_str_isempty (ptr_app->real_path)) + result = (LONG_PTR)ptr_app->real_path; + } + else if (info_key == InfoName) { if (!_r_str_isempty (ptr_app->display_name)) result = (LONG_PTR)ptr_app->display_name;