summaryrefslogtreecommitdiff
path: root/daemon/gvfsdaemonutils.c
Commit message (Collapse)AuthorAgeFilesLines
* Use shorter strings for prompt dialog titlesJonas Dreßler2021-01-151-1/+3
| | | | | | | | | | | | | The layout of the modal dialogs in gnome-shell changed [1] and the title now is larger and uses the style of a headline. Make sure all titles remain fully visible and use shorter strings for those. Also unify the generic "Enter password" strings a bit to make work easier for translators and use this string for most cases: "Authentication Required\nEnter password for “%s”:" [1] https://gitlab.gnome.org/GNOME/gnome-shell/issues/1343
* google: Report progress for file transfers from local filesystemOndrej Holy2020-12-011-0/+74
| | | | | | | | | Google backend doesn't report progress from push job. As a consequence, Nautilus shows wierd time estimations when moving/copying file from local filesystem. Let's add custom splice function and report progress from it. Fixes: https://gitlab.gnome.org/GNOME/gvfs/-/issues/463
* daemon: Don't set a content-type that isn't certainBastien Nocera2019-10-111-2/+4
| | | | | | Don't ignore the result_uncertain flag from g_content_type_guess() as it might cause nautilus to incorrectly think that a particular file is of a certain type, and never check its magic.
* Remove workaround for directory / folder iconswip/rishi/issue-2Debarshi Ray2018-08-141-11/+3
| | | | https://gitlab.gnome.org/GNOME/gvfs/issues/2
* Use Unicode in translatable stringsPiotr Drąg2016-10-031-3/+3
| | | | | | See https://developer.gnome.org/hig/stable/typography.html https://bugzilla.gnome.org/show_bug.cgi?id=772219
* daemon: Handle NULL certificates properlyOndrej Holy2016-06-281-0/+3
| | | | | | | | | Webdav backend crashes if libsoup returns NULL certificate. Ftp backend may be also affected. The crash may happen if you try to connect with "davs://" ("ftps://") to a server, which is not TLS-enabled. The backend fails properly with libsoup error thanks to this patch. https://bugzilla.redhat.com/show_bug.cgi?id=1350820
* build: Make GCR optionalRoss Lagerwall2015-06-171-0/+14
| | | | | | | | Make using GCR optional by compiling with --disable-gcr. This makes gvfs strict when checking SSL certificates, so don't silently disable it if the library is not found, only disable it if --disable-gcr is given. https://bugzilla.gnome.org/show_bug.cgi?id=750706
* daemon: Make certificate choices translatableRoss Lagerwall2015-04-091-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=526582
* daemon: Add function to confirm certificateRoss Lagerwall2015-04-091-0/+113
| | | | | | | | | | | | Add a utility function to present a certificate to the user during a mount to confirm whether to continue or not. This adds a dependency on Gcr, to parse information from the certificate. Based on a patch by Ondrej Holy. https://bugzilla.gnome.org/show_bug.cgi?id=526582
* daemon: Move seek type conversion to shared libraryRoss Lagerwall2015-02-091-0/+22
| | | | | | | Since converting a GSeekType into an lseek type is repeated in a few places, move it into shared code. https://bugzilla.gnome.org/show_bug.cgi?id=738967
* daemon: Move random string generation into shared libRoss Lagerwall2015-02-091-1/+0
| | | | | | | Random string generation is used in a few different places, so share the implementation. https://bugzilla.gnome.org/show_bug.cgi?id=738967
* Add symbolics support to the backendsWilliam Jon McCann2012-08-301-1/+8
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=681458
* gdbus: Core daemon and client portTomas Bzatek2012-07-311-75/+0
| | | | | | | | | | | 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
* 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-4/+4
| | | | | | | 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
* Minor string tweaks for translatorsTomas Bzatek2011-08-251-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=629116
* Rename gdbusutils.h to avoid conflict with GIO1.6.2Matthias Clasen2010-05-271-1/+1
| | | | This makes gvfs build with recent glib again, see bug #619537
* Bug 563788 – GNOME Goal: Clean up GLib and GTK+ includesBastien Nocera2009-02-051-1/+1
| | | | | | | | | | | | | | | | | | 2009-02-05 Bastien Nocera <hadess@hadess.net> Bug 563788 – GNOME Goal: Clean up GLib and GTK+ includes * client/gvfsuriutils.h: * daemon/gvfsbackendburn.c: * daemon/gvfsbackendcomputer.c: * daemon/gvfsbackenddnssd.c: * daemon/gvfsbackendnetwork.c: * daemon/gvfsdaemonutils.c: * daemon/mount.c: Fix build for single GTK+ include, patch from Luis Menina <liberforce@freeside.fr> (Closes: #563788) svn path=/trunk/; revision=2201
* Don't return fallback icons, since that gives problems with custom mimeAlexander Larsson2008-10-231-2/+0
| | | | | | | | | | | | | | 2008-10-23 Alexander Larsson <alexl@redhat.com> * daemon/gvfsbackendsftp.c: * daemon/gvfsbackendsmb.c: * daemon/gvfsdaemonutils.c: Don't return fallback icons, since that gives problems with custom mime icons (#528320) svn path=/trunk/; revision=2074
* add text-x-generic mime type as a last fallback option. Fixes #520189Benjamin Otte2008-03-051-6/+6
| | | | | | | | | | | | 2008-03-05 Benjamin Otte <otte@gnome.org> * daemon/gvfsdaemonutils.c: (gvfs_file_info_populate_content_types): add text-x-generic mime type as a last fallback option. Fixes #520189 svn path=/trunk/; revision=1557
* Add _g_dbus_message_iter_append_args_valist andAlexander Larsson2008-03-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-03-03 Alexander Larsson <alexl@redhat.com> * common/gdbusutils.[ch]: Add _g_dbus_message_iter_append_args_valist and _g_dbus_message_iter_append_args. * common/gvfsdaemonprotocol.h: Add G_VFS_DBUS_MOUNTTRACKER_OP_LIST_MOUNTABLE_INFO * client/Makefile.am: * client/gdaemonvfs.c: Use listMountableInfo to get supported uri schemes and information for default uri handling. Handle default port in uris and if host_is_inet normalize hostnames, including removing ipv6 brackets. * client/sftpuri.c: Removed, as the previous work replaces it * daemon/gvfsdaemonutils.c: (gvfs_file_info_populate_content_types): Fix uninitialized variable warning. * daemon/mount.c: Read new mountfile info and implement list_mountable_info. * daemon/sftp.mount.in: Add info for sftp svn path=/trunk/; revision=1508
* Rename gvfs_file_info_populate_names() toAlexander Larsson2008-02-291-5/+10
| | | | | | | | | | | | | 2008-02-29 Alexander Larsson <alexl@redhat.com> * daemon/gvfsdaemonutils.[ch]: Rename gvfs_file_info_populate_names() to gvfs_file_info_populate_names_as_local() and add docs explaining when to use this function and when not to. svn path=/trunk/; revision=1449
* Use g_content_type_get_icon() for the icon mapping. Use folder, notAlexander Larsson2008-02-291-35/+5
| | | | | | | | | | | | | | | 2008-02-29 Alexander Larsson <alexl@redhat.com> * daemon/gvfsdaemonutils.c: (gvfs_file_info_populate_content_types): Use g_content_type_get_icon() for the icon mapping. Use folder, not folder-remote for icon. I don't think we should use folder-remote for things like shares, not normal folders. svn path=/trunk/; revision=1448
* add functions that are supposed to set default values on a remote fileBenjamin Otte2008-02-281-0/+164
| | | | | | | | | | | | | | | | | | | 2008-02-28 Benjamin Otte <otte@gnome.org> * daemon/gvfsdaemonutils.c: (gvfs_file_info_populate_default), (gvfs_file_info_populate_names), (gvfs_file_info_populate_content_types): * daemon/gvfsdaemonutils.h: add functions that are supposed to set default values on a remote file info structure, so we don't duplicate the code across multiple backends. * daemon/gvfsbackendftp.c: (ftp_error_set_from_response), (ftp_connection_new), (file_info_get_flags), (file_info_query): use it. svn path=/trunk/; revision=1425
* Save errno befor making other calls. Be safe when calling g_set_error()Alexander Larsson2008-02-111-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-02-11 Alexander Larsson <alexl@redhat.com> * client/gdaemonfile.c: * client/gdaemonfileinputstream.c: * client/gdaemonfileoutputstream.c: * common/gsysutils.c: * common/gvfsdaemonprotocol.c: * daemon/gvfsbackendburn.c: * daemon/gvfsbackendcdda.c: * daemon/gvfsbackenddav.c: * daemon/gvfsbackendsftp.c: * daemon/gvfsbackendsmb.c: * daemon/gvfsbackendsmbbrowse.c: * daemon/gvfsbackendtest.c: * daemon/gvfsdaemonutils.c: * daemon/gvfsjob.c: * daemon/mount.c: * daemon/pty_open.c: Save errno befor making other calls. Be safe when calling g_set_error() Patch from Christian Persch (#514822) svn path=/trunk/; revision=1254
* Cleanup i18n strings (#510192)Alexander Larsson2008-02-041-1/+1
| | | | | | | | | | | 2008-02-04 Alexander Larsson <alexl@redhat.com> * daemon/gvfsbackendsftp.c: * daemon/gvfsdaemonutils.c: * hal/ghalvolume.c: Cleanup i18n strings (#510192) svn path=/trunk/; revision=1223
* Only use <gio/gio.h> includeAlexander Larsson2007-12-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-12-14 Alexander Larsson <alexl@redhat.com> * client/gdaemondirectorymonitor.c: * client/gdaemondirectorymonitor.h: * client/gdaemonfile.c: * client/gdaemonfile.h: * client/gdaemonfileenumerator.c: * client/gdaemonfileenumerator.h: * client/gdaemonfileinputstream.c: * client/gdaemonfileinputstream.h: * client/gdaemonfilemonitor.c: * client/gdaemonfilemonitor.h: * client/gdaemonfileoutputstream.c: * client/gdaemonfileoutputstream.h: * client/gdaemonmount.c: * client/gdaemonmount.h: * client/gdaemonvfs.c: * client/gdaemonvfs.h: * client/gdaemonvolumemonitor.h: * client/gvfsdaemondbus.c: * client/gvfsdaemondbus.h: * client/gvfsfusedaemon.c: * client/gvfsurimapper.h: * client/smburi.c: * common/gdbusutils.c: * common/gdbusutils.h: * common/gmountoperationdbus.c: * common/gmountoperationdbus.h: * common/gmountsource.c: * common/gmountsource.h: * common/gsysutils.c: * common/gvfsdaemonprotocol.c: * common/gvfsdaemonprotocol.h: * daemon/gvfsbackend.h: * daemon/gvfsbackendftp.c: * daemon/gvfsbackendsftp.c: * daemon/gvfsbackendsmb.c: * daemon/gvfsbackendsmbbrowse.c: * daemon/gvfsbackendtest.c: * daemon/gvfsbackendtrash.c: * daemon/gvfsdaemonutils.c: * daemon/gvfsjob.c: * daemon/gvfsjob.h: * daemon/gvfsjobcopy.h: * daemon/gvfsjobcreatemonitor.h: * daemon/gvfsjobdelete.h: * daemon/gvfsjobenumerate.h: * daemon/gvfsjobmakedirectory.h: * daemon/gvfsjobmakesymlink.h: * daemon/gvfsjobmount.h: * daemon/gvfsjobmountmountable.h: * daemon/gvfsjobmove.h: * daemon/gvfsjobqueryattributes.h: * daemon/gvfsjobqueryfsinfo.h: * daemon/gvfsjobqueryinfo.h: * daemon/gvfsjobsetattribute.h: * daemon/gvfsjobsetdisplayname.h: * daemon/gvfsjobtrash.h: * daemon/gvfsjobunmount.h: * daemon/gvfsmonitor.h: * daemon/mount.c: * daemon/mount.h: * programs/gvfs-cat.c: * programs/gvfs-copy.c: * programs/gvfs-info.c: * programs/gvfs-ls.c: * programs/gvfs-monitor-dir.c: * programs/gvfs-monitor-file.c: * programs/gvfs-mount.c: * programs/gvfs-move.c: * programs/gvfs-rm.c: * programs/gvfs-save.c: * programs/gvfs-trash.c: * test/benchmark-gvfs-big-files.c: * test/benchmark-gvfs-small-files.c: * test/benchmark-posix-big-files.c: * test/benchmark-posix-small-files.c: Only use <gio/gio.h> include svn path=/trunk/; revision=1039
* Add required includes for solaris Patch from Damien CarberyAlexander Larsson2007-11-131-0/+2
| | | | | | | | | | | | | | | | 2007-11-13 Alexander Larsson <alexl@redhat.com> * common/gsysutils.c: * daemon/gvfschannel.c: * daemon/gvfsdaemonutils.c: * daemon/gvfsjobcopy.c: * daemon/gvfsmonitor.c: * daemon/gvfswritechannel.c: Add required includes for solaris Patch from Damien Carbery svn path=/trunk/; revision=1022
* Fix typo: availible -> available.Sebastian Dröge2007-11-061-1/+1
| | | | | | | | | * configure.ac: * daemon/gvfsdaemonutils.c: (dbus_connection_send_fd): * daemon/mount.c: (vfs_mount_to_dbus), (dbus_message_function): Fix typo: availible -> available. svn path=/trunk/; revision=1015
* 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
* Move from G_FILE_ERROR to G_IO_ERRORAlexander Larsson2007-09-131-4/+6
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1174386485 +0100 svn path=/trunk/; revision=407
* Move code shared between client and daemon to common directoryAlexander Larsson2007-09-131-181/+4
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1169730469 +0100 svn path=/trunk/; revision=263
* Implement get_infoAlexander Larsson2007-09-131-5/+13
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1168620303 +0100 svn path=/trunk/; revision=234
* Further work on new dbus modelAlexander Larsson2007-09-131-6/+7
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1165831898 +0100 svn path=/trunk/; revision=221
* Add mountpoint trackerAlexander Larsson2007-09-131-2/+2
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1165504619 +0100 svn path=/trunk/; revision=220
* Initial work on the new way to track mountpoints.Alexander Larsson2007-09-131-0/+21
| | | | | | | | Daemon side only. Original git commit by Alexander Larsson <alex@greebo.(none)> at 1165492556 +0100 svn path=/trunk/; revision=219
* Allow multiple backend in one daemonAlexander Larsson2007-09-131-0/+57
| | | | | | Original git commit by Alexander Larsson <alex@greebo.(none)> at 1164972080 +0100 svn path=/trunk/; revision=207
* Handle seq_nrAlexander Larsson2007-09-131-4/+5
| | | | | | Original git commit by Alexander Larsson <alex@localhost.localdomain> at 1163513123 +0100 svn path=/trunk/; revision=148
* Add utility function to create error replyAlexander Larsson2007-09-131-0/+34
| | | | | | Original git commit by Alexander Larsson <alex@localhost.localdomain> at 1161871762 +0200 svn path=/trunk/; revision=136
* remove old commented out codeAlexander Larsson2007-09-131-3/+10
| | | | | | | | | | fix socket randmization code Fix some error reporting Missed unlock in error case Original git commit by Alexander Larsson <alex@localhost.localdomain> at 1161622307 +0200 svn path=/trunk/; revision=120
* More work on daemon scheduling etcAlexander Larsson2007-09-131-7/+157
| | | | | | Original git commit by Alexander Larsson <alex@localhost.localdomain> at 1161615951 +0200 svn path=/trunk/; revision=119
* Add some daemon side dbus utilsAlexander Larsson2007-09-131-0/+18
Original git commit by Alexander Larsson <alex@localhost.localdomain> at 1161263040 +0200 svn path=/trunk/; revision=111