summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackendcomputer.c
Commit message (Collapse)AuthorAgeFilesLines
* Use Unicode in translatable stringsPiotr Drąg2016-10-031-13/+13
| | | | | | See https://developer.gnome.org/hig/stable/typography.html https://bugzilla.gnome.org/show_bug.cgi?id=772219
* daemon: Set G_FILE_ATTRIBUTE_FILESYSTEM_REMOTE attributeOndrej Holy2016-06-281-0/+1
| | | | | | | Mark all network-based backends as remote. This is useful to remove some hardcoded lists of filesystem types in GTK+. Bump required GLib version accordingly.
* Set filesystem::type for all backendsRoss Lagerwall2015-08-041-0/+13
| | | | | | | This attribute was being set inconsistently, and is used by the file chooser. https://bugzilla.gnome.org/show_bug.cgi?id=752834
* computer: Fix a memory leakRoss Lagerwall2014-08-141-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=734695
* Use g_list_free_full() where applicableTomas Bzatek2013-01-171-2/+1
|
* Add symbolics support to the backendsWilliam Jon McCann2012-08-301-0/+16
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=681458
* Improve translations a bit and add hint for etagFelix Möller2012-08-231-4/+4
| | | | Closes https://bugzilla.gnome.org/show_bug.cgi?id=595087
* 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>
* computer: Mark items as not renamableMarcus Carlson2012-07-301-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=617056
* computer: Use 'drive-harddisk-system' as File System iconTimothy Arceri2011-08-231-1/+1
| | | | | | | Ideally we would like to check for recent gnome-icon-theme-extras package but there's no pkg-config file. https://bugzilla.gnome.org/show_bug.cgi?id=655691
* Fix singular/plural form confusion with media/medium. Reported by Bruce ↵Kjartan Maraas2011-05-241-1/+1
| | | | Cowan. Fixes bug #593664.
* use consistent "file system" spelling (#520902)Bryce Harrington2009-12-161-1/+1
|
* Use default location instead of root when activating mounts in computerAlexander Larsson2009-11-271-1/+1
|
* Disallow mounting empty drivesTomas Bzatek2009-10-131-1/+1
| | | | | | | | | This concerns only removable media drives without any detected volumes. The end result is no Mount item in Nautilus popup menu and no action taken on double-click over the drive icon. The exception is floppy drives, where we always allow mount without need of detecting media manually first.
* Bug 587484 – Interaction when unmounting mounts and misc fixesDavid Zeuthen2009-07-081-32/+146
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Port everything to use _with_operation() variants of unmount/eject methods - Add support for g_file_poll_mountable() - new job class: GVfsJobPollMountable - Pass mount operation for unmount/eject ops on GDaemonFile and GDaemonMount - receive in the appropriate GVfsJob classes - also pass unmount flags where it was missing - port all backends to use this - Teach GMountSource and GMountOperationDBus about the new GMountOperation::show-processes signal - also provide new API - g_mount_source_is_dummy() - e.g. when the client didn't passed NULL for the GMountOperation - g_mount_source_abort() - to send the ::abort signal to the client-side GMountOperation - make the client-side of GMountSource return ::reply with NOT_HANDLED when we do an abort - Refactor the mount operation handling in GProxyVolumeMonitor - Pass mount operation for unmount/ejects in GProxyVolumeMonitor - Pass the process id of the actual reader/writer in OpenForRead and OpenForWrite daemon methods - add some private API for making the FUSE client set the pid of the POSIX client (otherwise it looks like the FUSE client is blocking) and pass the right pid. This is because the FUSE client is basically impersonating the POSIX processes. - Make the process id mentioned above available in appropriate GVfsJob classes - GVfsJobOpenForRead - GVfsJobOpenForWrite - GVfsChannel - Provide API to get a list of all blocking clients, e.g. an array of GPid - g_vfs_daemon_get_blocking_processes() - Provide convenience API to easily doing the right thing on unmount; e.g. interact with the user about blocking processes - see the gphoto2 backend for example usage - g_vfs_backend_has_blocking_processes() - g_vfs_backend_unmount_with_operation() and g_vfs_backend_unmount_with_operation_finish() - Only the gphoto2 backend supports ::show-processes right now. Support for other backends will be added shortly. - Implement support for ::show-processes in the GDU volume monitor - right now we don't support "Unmount Anyway" since it requires ABI changes in libgdu.so - this will be changed as soon as there's a new gnome-disk-utility release
* Bug 585591 – Starting/stopping drivesDavid Zeuthen2009-06-171-4/+158
| | | | | | | | | This is the GVfs implementation for the new GIO API for starting/stopping drives. See http://bugzilla.gnome.org/show_bug.cgi?id=585591 for details.
* Bug 578574 – always show drive names in computer://Alexander Larsson2009-04-161-2/+29
| | | | | | | | | | | | | | | 2009-04-16 Alexander Larsson <alexl@redhat.com> Bug 578574 – always show drive names in computer:// * daemon/gvfsbackendcomputer.c: (recompute_files): If mount has a drive, use its name as part of the display name. Patch from David Zeuthen svn path=/trunk/; revision=2377
* Bug 572521 – gvfsd-cdda create two different Audio Disc Icons on DesktopAlexander Larsson2009-03-111-1/+1
| | | | | | | | | | | | | 2009-03-11 Alexander Larsson <alexl@redhat.com> Bug 572521 – gvfsd-cdda create two different Audio Disc Icons on Desktop * daemon/gvfsbackendcomputer.c (recompute_files): Don't show shadowed mounts. svn path=/trunk/; revision=2318
* 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
* Always fail the job when we don't support monitoring.Alexander Larsson2008-10-201-4/+3
| | | | | | | | | | | | | | 2008-10-20 Alexander Larsson <alexl@redhat.com> * daemon/gvfsbackendcomputer.c (try_create_dir_monitor): Always fail the job when we don't support monitoring. * client/gvfsfusedaemon.c (getattr_for_file): Correct st_blocks rounding in previous commit svn path=/trunk/; revision=2060
* Use standard icon names.Matthias Clasen2008-07-281-2/+2
| | | | svn path=/trunk/; revision=1840
* get rid of modelines The modelines were inconsistent and caused issuesBenjamin Otte2008-04-221-1/+0
| | | | | | | | | * */*.[ch]: get rid of modelines The modelines were inconsistent and caused issues when used in different editors. svn path=/trunk/; revision=1756
* Avoid crash when mounting drive Fix leak.Alexander Larsson2008-03-041-2/+5
| | | | | | | | | | | | | 2008-03-04 Alexander Larsson <alexl@redhat.com> * daemon/gvfsbackendcomputer.c: (mount_volume_from_drive): Avoid crash when mounting drive Fix leak. svn path=/trunk/; revision=1527
* Implement media polling for Computer backend, handling the case when noCosimo Cecchi2008-02-291-4/+105
| | | | | | | | | | | | 2008-02-29 Cosimo Cecchi <cosimoc@gnome.org> * daemon/gvfsbackendcomputer.c: (recompute_files), (mount_volume_from_drive), (report_no_media_error), (poll_for_media_cb), (try_mount_mountable): Implement media polling for Computer backend, handling the case when no media is in the drive. Also adds a new string. (#514135) svn path=/trunk/; revision=1445
* Code cleanup from Kjartan: Removes unused code/variables. Uses rightAlexander Larsson2008-02-191-1/+1
| | | | | | | | | | | | | | | 2008-02-19 Alexander Larsson <alexl@redhat.com> * lots of *.c files: Code cleanup from Kjartan: Removes unused code/variables. Uses right printf types Uses non-deprecated dbus calls. Removes spurious ; and , deleted extra checks for NULL for g_free svn path=/trunk/; revision=1302
* If lookup returns NULL it already set the error. Handle this in allAlexander Larsson2008-02-141-6/+11
| | | | | | | | | | | 2008-02-14 Alexander Larsson <alexl@redhat.com> * daemon/gvfsbackendcomputer.c: If lookup returns NULL it already set the error. Handle this in all callers. svn path=/trunk/; revision=1274
* Update for the new mount flag argument.Alexander Larsson2008-02-111-0/+1
| | | | | | | | | | | | | | | | | 2008-02-11 Alexander Larsson <alexl@redhat.com> * client/gdaemonfile.c: * daemon/gvfsbackendcomputer.c: * hal/ghalvolume.c: * programs/gvfs-mount.c: Update for the new mount flag argument. * hal/ghaldrive.c: * programs/gvfs-open.c: Fix warnings svn path=/trunk/; revision=1253
* Add "filesystem" to computer:Alexander Larsson2008-02-081-2/+11
| | | | | | | | | | | | | | 2008-02-08 Alexander Larsson <alexl@redhat.com> * daemon/gvfsbackendcomputer.c: Add "filesystem" to computer: * hal/ghalmount.c: Remove spew svn path=/trunk/; revision=1240
* Add upload operation (requires latest glib)Alexander Larsson2008-01-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-17 Alexander Larsson <alexl@redhat.com> * common/gvfsdaemonprotocol.h: * client/gdaemonfile.c: Add upload operation (requires latest glib) * daemon/gvfsbackend.[ch]: * daemon/gvfsjobupload.[ch]: Added. Implement upload in daemon * daemon/Makefile.am: * daemon/burn.mount.in: Added. * daemon/gvfsbackendburn.[ch]: Added. Added initial burn:/// implementation. Not fully implemented, but read works. * daemon/gvfsbackendcomputer.c: Ensure we set right mimetype for dirs svn path=/trunk/; revision=1143
* Clean up strings and add translator commentsAlexander Larsson2008-01-151-2/+2
| | | | | | | | | | | | | | | | | | | | | 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
* Fix crash (#508236) Patch from Joe Marcus ClarkeAlexander Larsson2008-01-151-0/+1
| | | | | | | | | | | | 2008-01-15 Alexander Larsson <alexl@redhat.com> * daemon/gvfsbackendcomputer.c: (recompute_files): Fix crash (#508236) Patch from Joe Marcus Clarke svn path=/trunk/; revision=1134
* Set can't write info on the root.Alexander Larsson2008-01-111-0/+3
| | | | | | | | | | | 2008-01-11 Alexander Larsson <alexl@redhat.com> * daemon/gvfsbackendcomputer.c: Set can't write info on the root. svn path=/trunk/; revision=1096
* Implement unmount_mountable and eject_mountable on client side.Alexander Larsson2008-01-111-6/+170
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-11 Alexander Larsson <alexl@redhat.com> * client/gdaemonfile.c: * common/gvfsdaemonprotocol.h: Implement unmount_mountable and eject_mountable on client side. * common/gmountoperationdbus.c: Fix warnings * daemon/gvfsbackend.[ch]: * daemon/gvfsjobunmountmountable.[ch]: Add unmount_mountable and eject_mountable in daemon. * daemon/gvfsbackendcomputer.c: Implement unmount_mountable and eject_mountable * daemon/gvfsbackendlocaltest.c: Update to latest API * daemon/gvfsbackendsftp.c: Fix indentation * daemon/gvfsjobunmount.c: Always allow unmount if unmount is not implemented. svn path=/trunk/; revision=1093
* Make GVfsMonitor API simpler for users.Alexander Larsson2008-01-101-7/+7
| | | | | | | | | | | | | 2008-01-10 Alexander Larsson <alexl@redhat.com> * daemon/gvfsbackend.h: * daemon/gvfsmonitor.[ch]: * daemon/gvfsbackendcomputer.c: * daemon/gvfsbackendtrash.c: Make GVfsMonitor API simpler for users. svn path=/trunk/; revision=1091
* Remove freeing of initial ref after delay.Alexander Larsson2008-01-101-2/+2
| | | | | | | | | | | | | | | | | | | | 2008-01-10 Alexander Larsson <alexl@redhat.com> * daemon/gvfsmonitor.c: Remove freeing of initial ref after delay. * daemon/gvfsjobcreatemonitor.[ch]: Set the monitor as result here, not only the obj path. Nicer and allows better lifetime handling. If returning a obj ref, keep the monitor alive for some time to allow a subscribe request. * daemon/gvfsbackendcomputer.c: * daemon/gvfsbackendtrash.c: Update to the new APIs svn path=/trunk/; revision=1090
* Add g_mount_source_get_operation() that lets you handle a remoteAlexander Larsson2008-01-091-7/+55
| | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-09 Alexander Larsson <alexl@redhat.com> * common/gmountsource.[ch]: Add g_mount_source_get_operation() that lets you handle a remote GMountSource as if it was a GMountOperation. * common/gmountoperationdbus.c: * programs/gvfs-mount.c: Update to new GMountOperation APIs * client/gdaemonfile.c: * daemon/gvfsjobmountmountable.[ch]: Also let you return target by uri, as not all targets are from gvfs. * daemon/gvfsbackendcomputer.c: Initial cut at mount_mountable svn path=/trunk/; revision=1085
* Add initial computer backendAlexander Larsson2008-01-081-0/+791
2008-01-08 Alexander Larsson <alexl@redhat.com> * daemon/Makefile.am: * daemon/computer.mount.in: * daemon/gvfsbackendcomputer.[ch]: Add initial computer backend * daemon/gvfsbackend.h: * daemon/gvfsjobunmountmountable.[ch]: Add umount_mountable calls svn path=/trunk/; revision=1078