[nautilus] file-utilities: Handle x-content/ostree-repository as software
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] file-utilities: Handle x-content/ostree-repository as software
- Date: Mon, 9 Mar 2020 08:56:24 +0000 (UTC)
commit 6887df91cee8b444fc5d98ecd75268276f340345
Author: Philip Withnall <withnall endlessm com>
Date: Fri Oct 11 16:51:41 2019 +0100
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>
src/nautilus-file-utilities.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
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
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]