diff options
author | Carlos Soriano <csoriano@redhat.com> | 2018-06-12 18:26:02 +0200 |
---|---|---|
committer | Carlos Soriano <csoriano1618@gmail.com> | 2018-06-14 13:21:30 +0000 |
commit | 000c33009074dd0c6f89e6176361882b38b1d742 (patch) | |
tree | f2782102c6cf227480738dffef9228a5c30e5199 /src/nautilus-program-choosing.c | |
parent | fd43da06beb2307ac3e7963b44e84bf8a2eaaed4 (diff) | |
download | nautilus-000c33009074dd0c6f89e6176361882b38b1d742.tar.gz |
mime-actions: Add activated files to recent
Until now we left applications to add the files to recent if they did
modify them. This usually works, specially for gtk applications, but it
doesn't work for applications using other toolkits.
Recently, as we move towards a more containerized Nautilus with Flatpak
the recent files set by other apps are not accessible, so we need to
add them ourselves when opening in Nautilus.
This work adds every file activated by other app from Nautilus be added
as recent.
Diffstat (limited to 'src/nautilus-program-choosing.c')
-rw-r--r-- | src/nautilus-program-choosing.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/nautilus-program-choosing.c b/src/nautilus-program-choosing.c index 84d9e6abd..7ce31ffe4 100644 --- a/src/nautilus-program-choosing.c +++ b/src/nautilus-program-choosing.c @@ -63,15 +63,7 @@ add_file_to_recent (NautilusFile *file, recent_data.mime_type = nautilus_file_get_mime_type (file); recent_data.app_name = g_strdup (g_get_application_name ()); - - if (application != NULL) - { - recent_data.app_exec = g_strdup (g_app_info_get_commandline (application)); - } - else - { - recent_data.app_exec = g_strdup ("gio open"); - } + recent_data.app_exec = g_strdup (g_app_info_get_commandline (application)); recent_data.groups = NULL; recent_data.is_private = FALSE; |