summaryrefslogtreecommitdiff
path: root/daemon/daemon-main.c
Commit message (Collapse)AuthorAgeFilesLines
* Add prefixes in debug messagesOndrej Holy2017-01-241-3/+3
| | | | | There is a lot of messages if all debug output from gvfs is enabled. Let's add prefixes in order to find easily origin of the messages.
* Use Unicode in translatable stringsPiotr Drąg2016-10-031-2/+2
| | | | | | See https://developer.gnome.org/hig/stable/typography.html https://bugzilla.gnome.org/show_bug.cgi?id=772219
* daemon: Allow toggling debug output with SIGUSR2Ross Lagerwall2016-01-181-4/+6
| | | | | | | | | | | | With dbus hooked up to systemd, it can be useful to toggle debug output on/off for a running daemon. Respond to SIGUSR2 by toggling debug output. E.g. to toggle and then watch debug output on a running sftp mount: $ pkill -USR2 gvfsd-sftp $ journalctl -f https://bugzilla.gnome.org/show_bug.cgi?id=740660
* daemon: Don't leak mountable_nameDmitry Eremin-Solenikov2015-11-111-3/+3
| | | | | | | | | | | If the daemon code allocates a unique mountable_name, later this string is lost. Store and free it properly to remove the memory leak. https://bugzilla.gnome.org/show_bug.cgi?id=757901 Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> [oholy@redhat.com: commit message modification] Signed-off-by: Ondrej Holy <oholy@redhat.com>
* Remove unused function to avoid warningsOndrej Holy2015-09-091-7/+0
| | | | | | | Commit 59325df refactored daemon code a bit. Function do_name_acquired is no more needed. Remove this function to avoid following warnings: daemon-main.c:347:1: warning: ‘do_name_acquired’ defined but not used
* Make all gvfs daemons own a name under org.gtk.vfs.*Alexander Larsson2015-09-031-15/+13
| | | | | | | | | | | | | | | | | | | This allows you to easily allow access to gvfs from a sandbox. Just give it talk access to org.gtk.vfs.* and everything will work. This change does three things: Change the existing mountpoint dbus names from org.gtk.vfs.mountpoint.foo to org.gtk.vfs.mountpoint_foo For other mountpoints, always own: org.gtk.vfs.mountpoint_$pid Change the dbus name of the volume monitors from org.gtk.Private.fooMonitor to org.gtk.vfs.fooMonitor
* Adds remaining shutdown infrastructure and call from cdda backend.Timothy Arceri2013-05-061-1/+11
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=511802
* daemon: Add missing va_end() callTomas Bzatek2012-12-071-0/+1
|
* Remove calls to g_type_init(), bump GLib required versionColin Walters2012-10-301-2/+0
| | | | | | See http://git.gnome.org/browse/glib/commit/?id=2002479c02fa6e468fc3f67ddc663657a52ebde8 https://bugzilla.gnome.org/show_bug.cgi?id=687236
* Strip dbus error strings from GError after all dbus calls.Alexander Larsson2012-08-241-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=682384
* Report back error_code on spawn fail due to bus name already ownedAlexander Larsson2012-08-231-5/+6
| | | | | | We return the not-quite-right ALREADY_MOUNTED. Its not strictly right because just because the name is owned does not mean the mount has been registred yet.
* Don't g_warn about getting the dbus nameAlexander Larsson2012-08-231-2/+0
| | | | This breaks fatal warnings unnecessarily
* daemon: Drop no-longer-necessary libdbus thread init bitsColin Walters2012-08-211-8/+0
| | | | Build regression introduced by 288e9153f1f6efdb1243ad4d8589519326f3ec94
* gdbus: Remove debug printsTomas Bzatek2012-07-311-10/+0
|
* gdbus: Use g_clear_object() where appropriateTomas Bzatek2012-07-311-2/+1
|
* gdbus: Construct proxies without connecting signals and propertiesTomas Bzatek2012-07-311-1/+1
| | | | | Use G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS and G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES flags where applicable.
* gdbus: Bring libdbus threads initialization backTomas Bzatek2012-07-311-0/+8
| | | | | | | | I hate reverting things but this seems to be required for proper libdbus threads initialization, further used by gnome-keyring. This has actually been fixed in gnome-keyring recently (bug 659162) but gvfs can still be used with gnome-keyring-2.32.
* gdbus: Core daemon and client portTomas Bzatek2012-07-311-89/+206
| | | | | | | | | | | Port of most of the gvfs core, few bits still missing. Lot of debug prints around, will be removed in further commits. Same amount of TODOs and FIXMEs. Notes: * kill serials? * get rid of mainloops where applicable (copy/move progress callback, enumerator) * fix keyring integration * use gdbus builtin fd passing within gvfsdaemon.c, kill the extra_fd stuff
* Spelling correction "filesystem" -> "file system"Felix Möller2012-07-311-1/+1
| | | | | | | Unify the spelling. For the discussion see: https://bugzilla.gnome.org/show_bug.cgi?id=520902 Signed-off-by: Tomas Bzatek <tbzatek@redhat.com>
* Update the Address of the FSFFelix Möller2012-07-301-2/+2
| | | | | | | | | | | | | | | Updating the address of the FSF. This has been done by: while read file; do sed -i 's:59 Temple Place:51 Franklin Street:' $file sed -i 's:Suite 330:Fifth Floor:' $file sed -i 's:02111-1307:02110-1301:' $file done https://bugzilla.gnome.org/show_bug.cgi?id=656598 Signed-off-by: Tomas Bzatek <tbzatek@redhat.com>
* Adapt to GLib 2.31 deprecations and thread API changesMatthias Clasen2011-10-211-1/+0
| | | | | | | GStaticMutex and GStaticRWLock have been replaced by GMutex and GRWLock, and g_thread_init() is no longer needed. https://bugzilla.gnome.org/show_bug.cgi?id=661148
* Ignore SIGPIPE signals to avoid process termination on cancelled transferTomas Bzatek2011-08-291-0/+6
| | | | | | | | That way we would be able to properly get EPIPE when trying to write to a socket or pipe whose far end has been closed. This happens e.g. on file copy cancellation. Glib does similar thing on GSocket initialization. https://bugzilla.gnome.org/show_bug.cgi?id=649041
* Always write (S)FTP in capitals.Friedel Wolff2011-08-241-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=629116
* Don't leak dbus messagesAlexander Larsson2011-04-151-0/+1
| | | | | We're missing a lot of dbus_message_unref after sending messages, add them.
* Enable debug output if GVFS_DEBUG is set in the environment.Alexander Larsson2009-03-131-0/+4
| | | | | | | | | | | 2009-03-13 Alexander Larsson <alexl@redhat.com> * daemon/daemon-main.c (daemon_parse_args): Enable debug output if GVFS_DEBUG is set in the environment. svn path=/trunk/; revision=2321
* Only spew g_debug if backend started with --debugAlexander Larsson2009-03-061-0/+20
| | | | | | | | | | | 2009-03-06 Alexander Larsson <alexl@redhat.com> * ChangeLog: * daemon/daemon-main.c: Only spew g_debug if backend started with --debug svn path=/trunk/; revision=2298
* Convert all spew to g_debug()Alexander Larsson2009-03-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-03-06 Alexander Larsson <alexl@redhat.com> * daemon/daemon-main.c: * daemon/gvfsbackend.c: * daemon/gvfsbackendburn.c: * daemon/gvfsbackenddav.c: * daemon/gvfsbackendhttp.c: * daemon/gvfsbackendobexftp.c: * daemon/gvfsbackendtrash.c: * daemon/gvfsdaemon.c: * daemon/gvfsjobcloseread.c: * daemon/gvfsjobclosewrite.c: * daemon/gvfsjobcopy.c: * daemon/gvfsjobdbus.c: * daemon/gvfsjobenumerate.c: * daemon/gvfsjobmount.c: * daemon/gvfsjobmove.c: * daemon/gvfsjobpull.c: * daemon/gvfsjobpush.c: * daemon/gvfsjobread.c: * daemon/gvfsjobseekread.c: * daemon/gvfsjobseekwrite.c: * daemon/gvfsjobunmount.c: * daemon/gvfsjobwrite.c: * daemon/mount.c: Convert all spew to g_debug() svn path=/trunk/; revision=2297
* reviewed by: A. Walton <awalton@svn.gnome.org>Benjamin Otte2008-02-281-0/+14
| | | | | | | | | | | | | | | | | | | | | | | 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
* Fix "_" spew.Alexander Larsson2008-02-201-2/+4
| | | | | | | | | | | 2008-02-20 Alexander Larsson <alexl@redhat.com> * daemon/daemon-main.c (send_spawned): Fix "_" spew. svn path=/trunk/; revision=1310
* Include locate.h for setlocaleGVFS_0_1_5Alexander Larsson2008-01-281-0/+1
| | | | | | | | | | | | 2008-01-28 Alexander Larsson <alexl@redhat.com> * daemon/daemon-main.c: * daemon/main.c: Include locate.h for setlocale svn path=/trunk/; revision=1192
* Enable translations for daemons and some l10n fixes. Patch from LucaAlexander Larsson2008-01-281-7/+20
| | | | | | | | | | | | | 2008-01-28 Alexander Larsson <alexl@redhat.com> * daemon/Makefile.am: * daemon/daemon-main.c: * daemon/main.c: Enable translations for daemons and some l10n fixes. Patch from Luca Ferretti. svn path=/trunk/; revision=1186
* Clean up strings and add translator commentsAlexander Larsson2008-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | | 2008-01-15 Alexander Larsson <alexl@redhat.com> * client/gdaemonfile.c: * daemon/daemon-main.c: * daemon/gvfsbackendcdda.c: * daemon/gvfsbackendcomputer.c: * daemon/gvfsbackendftp.c: * daemon/gvfsbackendlocaltest.c: * daemon/gvfsbackendsftp.c: * daemon/gvfsbackendsmb.c: * daemon/gvfsbackendsmbbrowse.c: * daemon/gvfsbackendtrash.c: * daemon/gvfsjobsetattribute.c: * hal/ghaldrive.c: Clean up strings and add translator comments svn path=/trunk/; revision=1135
* Add copyright information to source files.Christian Kellner2007-11-011-0/+22
| | | | | | | | | | | | 2007-11-01 Christian Kellner <gicmo@gnome.org> * client/*.[ch]: * common/*.[ch]: * daemon/*.[ch]: * test/*.[ch]: Add copyright information to source files. svn path=/trunk/; revision=1007
* Add G_VFS_DBUS_OP_SPAWNED defineAlexander Larsson2007-09-131-1/+1
| | | | | | Original git commit by Alexander Larsson <alexl@redhat.com> at 1178705535 +0200 svn path=/trunk/; revision=533
* Update gvfs mounting to the new APIsAlexander Larsson2007-09-131-28/+70
| | | | | | Original git commit by Alexander Larsson <alexl@redhat.com> at 1178632314 +0200 svn path=/trunk/; revision=525
* Move from G_FILE_ERROR to G_IO_ERRORAlexander Larsson2007-09-131-4/+4
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1174386485 +0100 svn path=/trunk/; revision=407
* Add job thread limitAlexander Larsson2007-09-131-0/+3
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1171549797 +0100 svn path=/trunk/; revision=348
* Remove smb-specific text from generic mainAlexander Larsson2007-09-131-1/+1
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1171373480 +0100 svn path=/trunk/; revision=343
* Add generic code for mainloopAlexander Larsson2007-09-131-0/+175
Original git commit by Alexander Larsson <alex@greebo.(none)> at 1171292000 +0100 svn path=/trunk/; revision=323