diff options
author | Philip Withnall <withnall@endlessm.com> | 2019-10-11 16:51:41 +0100 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2020-03-09 08:48:42 +0000 |
commit | 6887df91cee8b444fc5d98ecd75268276f340345 (patch) | |
tree | d06eb83af4b4beccd2ed78370233248daa901a72 | |
parent | 6f010e22b8bb88032d2f1966b3ac8d9a28a6f626 (diff) | |
download | nautilus-6887df91cee8b444fc5d98ecd75268276f340345.tar.gz |
file-utilities: Handle x-content/ostree-repository as software
It’s been added to shared-mime-info alongside `x-content/unix-software`:
https://gitlab.freedesktop.org/xdg/shared-mime-info/merge_requests/22.
This tweaks the existing string, and adds a new string, to differentiate
the two, since `x-content/unix-software` typically refers to executables
on a USB stick, ready to run. `x-content/ostree-repository` typically
refers to flatpak apps or OS updates on a USB stick ready to install
from there onto your system.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
-rw-r--r-- | src/nautilus-file-utilities.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nautilus-file-utilities.c b/src/nautilus-file-utilities.c index f8afabbfe..ab7192e1c 100644 --- a/src/nautilus-file-utilities.c +++ b/src/nautilus-file-utilities.c @@ -1043,7 +1043,11 @@ get_message_for_content_type (const char *content_type) } else if (strcmp (content_type, "x-content/unix-software") == 0) { - message = g_strdup (_("Contains software")); + message = g_strdup (_("Contains software to run")); + } + else if (strcmp (content_type, "x-content/ostree-repository") == 0) + { + message = g_strdup (_("Contains software to install")); } else { |