From 4ef631c4b71bf372dc3b15696e46a0d3794ee85e Mon Sep 17 00:00:00 2001 From: Theo Linkspfeifer Date: Sat, 18 Apr 2020 21:35:47 +0200 Subject: [PATCH] Show URI in tooltip for devices connected via MTP --- thunar/thunar-shortcuts-model.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/thunar/thunar-shortcuts-model.c b/thunar/thunar-shortcuts-model.c index 36021d10..0d669b2c 100644 --- a/thunar/thunar-shortcuts-model.c +++ b/thunar/thunar-shortcuts-model.c @@ -618,8 +618,10 @@ thunar_shortcuts_model_get_value (GtkTreeModel *tree_model, if (file != NULL) { - if (thunar_g_file_is_root (file)) + if (g_file_has_uri_scheme (file, "file") && thunar_g_file_is_root (file)) location = g_strdup (_("Browse the file system")); + else if (!g_file_has_uri_scheme (file, "file")) + location = g_file_get_uri (file); else location = thunar_g_file_get_location (file); -- 2.26.0