From dac08960dfb22be895b12de01a43269e22a6e3c5 Mon Sep 17 00:00:00 2001 From: Hideyuki Nagase Date: Tue, 7 Feb 2023 15:54:08 -0800 Subject: [PATCH] publish flatpak applications to start menu --- rdprail-shell/app-list.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rdprail-shell/app-list.c b/rdprail-shell/app-list.c index 5cfe5555e..3600da400 100644 --- a/rdprail-shell/app-list.c +++ b/rdprail-shell/app-list.c @@ -128,6 +128,9 @@ char *icon_folder[] = { "/usr/share/icons/hicolor/24x24/apps/", "/usr/share/icons/hicolor/22x22/apps/", "/usr/share/icons/hicolor/16x16/apps/", + "/var/lib/flatpak/exports/share/icons/hicolor/96x96/apps/", + "/var/lib/flatpak/exports/share/icons/hicolor/128x128/apps/", + "/var/lib/flatpak/exports/share/icons/hicolor/48x48/apps/", "/usr/share/icons/HighContrast/96x96/apps/", "/usr/share/icons/HighContrast/128x128/apps/", "/usr/share/icons/HighContrast/48x48/apps/", @@ -847,12 +850,13 @@ app_list_monitor_thread(LPVOID arg) but env variable at user distro is not accessible from system-distro, thus, any additional path can be added by WESTON_RDPRAIL_SHELL_APP_LIST_PATH using .wslgconfig */ - #define CUSTOM_APP_LIST_FOLDER_INDEX 3 + #define CUSTOM_APP_LIST_FOLDER_INDEX 4 #define MAX_APP_LIST_FOLDER 128 char *app_list_folder[MAX_APP_LIST_FOLDER] = { "/usr/share/applications", "/usr/local/share/applications", "/var/lib/snapd/desktop/applications", + "/var/lib/flatpak/exports/share/applications", NULL, /* always terminated witn NULL entry */ }; int fd[ARRAY_LENGTH(app_list_folder)] = {-1, -1, -1, -1};