diff options
author | Benjamin Otte <otte@gnome.org> | 2008-02-28 21:34:30 +0000 |
---|---|---|
committer | Benjamin Otte <otte@src.gnome.org> | 2008-02-28 21:34:30 +0000 |
commit | cd1d355b80603b622c2c699cd15026c02477cbcb (patch) | |
tree | 0a26fd8f894073cffeeda8db6cd0e46f9fd2b589 /daemon/daemon-main.c | |
parent | a020a38f2d719b2c9b1f072c2a609dfec85fe8bc (diff) | |
download | gvfs-cd1d355b80603b622c2c699cd15026c02477cbcb.tar.gz |
reviewed by: A. Walton <awalton@svn.gnome.org>
2008-02-28 Benjamin Otte <otte@gnome.org>
reviewed by: A. Walton <awalton@svn.gnome.org>
* daemon/daemon-main-generic.c: (main):
* daemon/daemon-main.c: (daemon_setup):
* daemon/daemon-main.h:
* daemon/gvfsbackendcdda.c: (g_vfs_cdda_daemon_init):
* daemon/gvfsbackendcdda.h:
* daemon/gvfsbackendsmb.c: (g_vfs_smb_daemon_init):
* daemon/gvfsbackendsmb.h:
* daemon/gvfsbackendsmbbrowse.c: (g_vfs_smb_browse_daemon_init):
* daemon/gvfsbackendsmbbrowse.h:
provide default application names for the daemons. This is necessary
to avoid gnome-keyring from saying "Application" wants access to the
keyring, which could sound very evil for a casual user.
Adds some more strings for the poor translators, too!
svn path=/trunk/; revision=1434
Diffstat (limited to 'daemon/daemon-main.c')
-rw-r--r-- | daemon/daemon-main.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/daemon/daemon-main.c b/daemon/daemon-main.c index 9089db6c..b3b2b477 100644 --- a/daemon/daemon-main.c +++ b/daemon/daemon-main.c @@ -67,6 +67,20 @@ daemon_init (void) } } +void +daemon_setup (void) +{ + char *name, *up; + + up = g_ascii_strup (G_STRINGIFY (DEFAULT_BACKEND_TYPE), -1); + /* translators: This is the default daemon's application name, + * the %s is the type of the backend, like "ftp" */ + name = g_strdup_printf (_("%s Filesystem Service"), up); + g_set_application_name (name); + g_free (name); + g_free (up); +} + static void send_spawned (DBusConnection *connection, gboolean succeeded, char *error_message) { |