[nautilus] Display owner as "me" for files I own
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Display owner as "me" for files I own
- Date: Mon, 16 Jul 2012 17:08:06 +0000 (UTC)
commit d6d3af9ef990a10967c7afc08f679b8cf2165f92
Author: William Jon McCann <jmccann redhat com>
Date: Mon Jul 16 09:58:36 2012 -0400
Display owner as "me" for files I own
libnautilus-private/nautilus-file.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c
index b359203..8f3ee67 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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]