diff --git a/libegg/smclient/eggdesktopfile.c b/libegg/smclient/eggdesktopfile.c
index 9b12af5..5eb11c6 100644
--- a/libegg/smclient/eggdesktopfile.c
+++ b/libegg/smclient/eggdesktopfile.c
@@ -1440,8 +1440,15 @@ egg_set_desktop_file_internal (const char *desktop_file_path,
 
   if (set_defaults && egg_desktop_file != NULL) {
     /* Set localized application name and default window icon */
-    if (egg_desktop_file->name)
-      g_set_application_name (egg_desktop_file->name);
+    if (egg_desktop_file->name){
+      g_set_application_name (egg_desktop_file_get_locale_string (egg_desktop_file, "Name", NULL, &error));
+        if (error)
+          {
+          g_warning ("Could not load localized name from desktop file '%s': %s",
+          desktop_file_path, error->message);
+          g_error_free (error);
+        }
+    }
     if (egg_desktop_file->icon)
       {
         if (g_path_is_absolute (egg_desktop_file->icon))
