diff options
author | Alexander Schwinn <alexxcons@xfce.org> | 2019-05-01 23:24:39 +0200 |
---|---|---|
committer | Alexander Schwinn <alexxcons@xfce.org> | 2020-10-31 23:03:16 +0100 |
commit | f91785ece2e505ae08ef404f940350c6dc25ea48 (patch) | |
tree | 9980a1b94b2ee75746125265a032c9dcaa2f24f4 | |
parent | 9c30e873dbc43ebc1689df9ca30e38c208034153 (diff) | |
download | thunar-f91785ece2e505ae08ef404f940350c6dc25ea48.tar.gz |
Show full filename/extention for .desktop files (Issue #56)
As well improves the situation for #156
-rw-r--r-- | thunar/thunar-file.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/thunar/thunar-file.c b/thunar/thunar-file.c index 37fb55fb..34f414dc 100644 --- a/thunar/thunar-file.c +++ b/thunar/thunar-file.c @@ -1054,22 +1054,6 @@ thunar_file_info_reload (ThunarFile *file, *p = '\0'; } } - - /* read the display name from the .desktop file (will be overwritten later - * if it's undefined here) */ - file->display_name = g_key_file_get_locale_string (key_file, - G_KEY_FILE_DESKTOP_GROUP, - G_KEY_FILE_DESKTOP_KEY_NAME, - NULL, NULL); - - /* drop the name if it's empty or has invalid encoding */ - if (exo_str_is_empty (file->display_name) - || !g_utf8_validate (file->display_name, -1, NULL)) - { - g_free (file->display_name); - file->display_name = NULL; - } - /* free the key file */ g_key_file_free (key_file); } |