summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Jon McCann <jmccann@redhat.com>2012-07-16 09:58:36 -0400
committerWilliam Jon McCann <jmccann@redhat.com>2012-07-16 13:06:49 -0400
commitd6d3af9ef990a10967c7afc08f679b8cf2165f92 (patch)
treef8b7bb9ecb490454f4575b1c9892b38eefc5843f
parentce7e64e90269634849f1f0b5c09c6b1ac450ced7 (diff)
downloadnautilus-d6d3af9ef990a10967c7afc08f679b8cf2165f92.tar.gz
Display owner as "me" for files I own
-rw-r--r--libnautilus-private/nautilus-file.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c
index b35920349..8f3ee6761 100644
--- a/libnautilus-private/nautilus-file.c
+++ b/libnautilus-private/nautilus-file.c
@@ -5600,7 +5600,10 @@ nautilus_file_get_owner_as_string (NautilusFile *file, gboolean include_real_nam
return NULL;
}
- if (file->details->owner_real == NULL) {
+ if (file->details->uid == getuid ()) {
+ /* Translators: "me" is used to indicate the file is owned by me (the current user) */
+ user_name = g_strdup (_("me"));
+ } else if (file->details->owner_real == NULL) {
user_name = g_strdup (eel_ref_str_peek (file->details->owner));
} else if (file->details->owner == NULL) {
user_name = g_strdup (eel_ref_str_peek (file->details->owner_real));