From 9ec172d7ad29b2c06ce9dba74105b09af8b6527d Mon Sep 17 00:00:00 2001 From: Dennis Tomas Date: Wed, 18 Jul 2007 20:21:52 +0200 Subject: [PATCH] Use Name entry of .desktop files for SendTo menu items. --- ROX-Filer/src/menu.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ROX-Filer/src/menu.c b/ROX-Filer/src/menu.c index ea9694a3..1aa6b4fe 100644 --- a/ROX-Filer/src/menu.c +++ b/ROX-Filer/src/menu.c @@ -514,6 +514,24 @@ static GList *menu_from_dir(GtkWidget *menu, const gchar *dir_name, ditem = diritem_new(""); diritem_restat(fname, ditem, NULL); + if (ditem->mime_type == application_x_desktop) + { + GError *error = NULL; + gchar *name; + + name = get_value_from_desktop_file(fname, + "Desktop Entry", + "Name", + &error); + if (name) + { + g_free(leaf); + leaf = name; + } + if (error) + g_error_free(error); + } + item = make_send_to_item(ditem, leaf, style); g_free(leaf); -- 2.11.4.GIT