summaryrefslogtreecommitdiff
path: root/programs
Commit message (Collapse)AuthorAgeFilesLines
* Add "default location" support for mountsChristian Kellner2009-11-261-1/+10
| | | | | | | | | | | The "default location" of the given mount is a path that reflects the main entry point for the user (e.g. the home directory, or the root of the volume). Backends can use g_vfs_backend_set_default_location () to set the default location (before registering the mount). https://bugzilla.gnome.org/show_bug.cgi?id=561998
* Fixed description for gvfs-mkdirJonh Wendell2009-10-011-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=593045
* Remove dead codeMatthias Clasen2009-09-111-2/+0
| | | | This memory leak was reported by clang. Bug 594829.
* Fix up various errors with i18n of programs/*.cAlexander Larsson2009-08-2414-660/+665
| | | | Lots of not translated strings, some errors did not go to stderr, etc.
* Add -f support to gvfs-rm and gvfs-trashAlexander Larsson2009-08-242-19/+31
| | | | Also clean up things a bit, and fix up translations.
* Bug 587484 – Interaction when unmounting mounts and misc fixesDavid Zeuthen2009-07-081-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* Allow unsetting attributes with gvfs-set-attributesAlexander Larsson2009-06-251-1/+6
|
* Don't show not requested info in gvfs-info (#582175)Andreas Henriksson2009-06-231-10/+16
| | | | | | | | | | | | For example: vuntz@lyon ~/>gvfs-info -a standard::content-type ~/blah.txt type: unknown size: 0 attributes: standard::content-type: text/plain type and size probably shouldn't be displayed if a specific attribute was requested..
* Add gvfs-set-attribute programAlexander Larsson2009-06-233-0/+205
|
* Bug 585591 – Starting/stopping drivesDavid Zeuthen2009-06-171-1/+15
| | | | | | | | | 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.
* [PROGRAMS] add a -n option to gvfs-ls for nofollow-symlinksBenjamin Otte2009-06-171-2/+8
|
* Make gvfs-mount print should_automount for GVolume objectsDavid Zeuthen2009-06-121-7/+8
|
* show speed in progress updates of gvfs-copyBenjamin Otte2009-06-081-2/+11
|
* Fix up .gitignore filesAlexander Larsson2009-04-171-0/+15
| | | | Update old ignore files and add new ones as needed
* Bug 523420 – gvfs-bash-completion.sh has a shebang and is executableAlexander Larsson2009-04-162-3/+1
| | | | | | | | | | | | | | | | 2009-04-16 Alexander Larsson <alexl@redhat.com> Bug 523420 – gvfs-bash-completion.sh has a shebang and is executable * programs/Makefile.am: Don't install gvfs-bash-completion.sh as executable * programs/gvfs-bash-completion.sh: Remove shebang svn path=/trunk/; revision=2376
* Bug 523732 – gvfs-bash-completion.sh should not modify COMP_WORDBREAKSAlexander Larsson2009-03-091-2/+14
| | | | | | | | | | | | | 2009-03-09 Alexander Larsson <alexl@redhat.com> Bug 523732 – gvfs-bash-completion.sh should not modify COMP_WORDBREAKS * programs/gvfs-bash-completion.sh: Don't override COMP_WORDBREAKS, instead workaround the colon problem svn path=/trunk/; revision=2307
* Bug 561172 – gnome-open fails on local URIs with anchorsAlexander Larsson2009-03-031-1/+10
| | | | | | | | | | | | 2009-03-03 Alexander Larsson <alexl@redhat.com> Bug 561172 – gnome-open fails on local URIs with anchors * programs/gvfs-open.c: Don't pass file:// uris with anchor as filename svn path=/trunk/; revision=2283
* Implement --device option for gvfs-mount.David Zeuthen2009-02-261-1/+99
| | | | | | | | | | | | | | | | | | | | 2009-02-26 David Zeuthen <davidz@redhat.com> Implement --device option for gvfs-mount. This allows things like this $ gvfs-mount -d /dev/sdb3 The device "Generic STORAGE DEVICE" contains encrypted data on partition 3. Password: Mounted /dev/dm-0 at /media/Encrypted Stuff Reviewed by: Alexander Larsson <alexl@redhat.com> * programs/gvfs-mount.c: See above. svn path=/trunk/; revision=2254
* Use the new support for shadow mounts instead ofAlexander Larsson2008-12-011-6/+246
| | | | | | | | | | | | | | | | | | | | | | | | | | 2008-12-01 Alexander Larsson <alexl@redhat.com> * client/gdaemonmount.c: * client/gdaemonvolumemonitor.c: * monitor/proxy/Makefile.am: * monitor/proxy/gproxydrive.c: * monitor/proxy/gproxymount.c: * monitor/proxy/gproxyvolume.c: * monitor/proxy/gproxyvolume.h: * monitor/proxy/gproxyvolumemonitor.c: * monitor/proxy/gproxyvolumemonitor.h: * monitor/proxy/remote-volume-monitor-module.c: * monitor/proxy/gproxyshadowmount.[ch]: Use the new support for shadow mounts instead of g_volume_monitor_adopt_orphan_mount Patch from David Zeuthen (#555332) * programs/gvfs-mount.c: Add support to monitor volume monitor events svn path=/trunk/; revision=2119
* Don't show fallback setting for GThemedIcon (this is a construct onlyAlexander Larsson2008-10-241-13/+7
| | | | | | | | | | | 2008-10-24 Alexander Larsson <alexl@redhat.com> * programs/gvfs-info.c (show_attributes): Don't show fallback setting for GThemedIcon (this is a construct only property). List icons on same line. svn path=/trunk/; revision=2076
* reviewed by: Christian Kellner <ck@xatom.net>Richard Hughes2008-10-201-3/+36
| | | | | | | | | | | | | | | | | | | | | 2008-10-20 Richard Hughes <richard@hughsie.com> reviewed by: Christian Kellner <ck@xatom.net> * programs/gvfs-info.c: (show_attributes): Whilst debugging an icon theme bug, I wanted to know what icon would be chosen for a file. It turns out gvfs-info gets all the properties and prints them, but for an icon prints: standard::icon: GThemedIcon:0x8df7200 This isn't very helpful. I've fixed this to print out the icons and the order they should be chosen like: standard::icon: (fallbacks: FALSE) 1. name:application-x-cd-image 2. name:gnome-mime-application-x-cd-image 3. name:application-x-generic 4. name:text-x-generic svn path=/trunk/; revision=2068
* Add x-content/* support to daemon mounts. Right now a backend can only setDavid Zeuthen2008-07-291-7/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-07-29 David Zeuthen <davidz@redhat.com> * client/gdaemonmount.c: * common/gmounttracker.c: * common/gmounttracker.h: * daemon/gvfsbackend.c: * daemon/gvfsbackend.h: * daemon/gvfsbackendcdda.c: * daemon/gvfsbackendgphoto2.c: * daemon/mount.c: Add x-content/* support to daemon mounts. Right now a backend can only set the x-content/* type ahead of time. We might want to add support dynamically obtaining it too (e.g. support force_rescan). * monitor/hal/ghalmount.c: * monitor/hal/ghalvolume.c: * monitor/hal/ghalvolumemonitor.c: * monitor/hal/hal-utils.c: * monitor/hal/hal-utils.h: Add x-content/* support to the HAL volume monitor. * monitor/proxy/gproxymount.c: * monitor/proxy/gproxymount.h: * monitor/proxy/gproxyvolumemonitor.c: * monitor/proxy/gproxyvolumemonitor.h: * monitor/proxy/gvfsproxyvolumemonitordaemon.c: Add x-content/* support to proxy volume monitor. Also fix a number of bugs the initial implementation had. * programs/gvfs-mount.c: Print out x-content-types. svn path=/trunk/; revision=1845
* Provide infrastructure for out of process volume monitors and port the halDavid Zeuthen2008-07-081-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-07-08 David Zeuthen <davidz@redhat.com> Provide infrastructure for out of process volume monitors and port the hal volume monitor to use it (#520132). * Makefile.am: * configure.ac: Add the monitor and monitor/proxy directories. * hal/Makefile.am: Don't build a gio module for the hal volume monitor; instead build a volume monitor daemon. * hal/ghaldrive.[ch]: * hal/ghalmount.[ch]: * hal/ghalvolume.[ch]: * hal/ghalvolumemonitor.[ch]: * hal/hal-device.[ch]: * hal/hal-device.[ch]: * hal/hal-pool.[ch]: Make all types static and implement g_volume_get_activation_root() added to gio (#541793). Also emit the drive-eject-button signal (#541794). * hal/hal-module.c: Removed since the monitor is being moved out of process. * hal/hal-volume-monitor-daemon.c: * hal/hal.monitor: * hal/org.gtk.Private.HalVolumeMonitor.service.in: New files for remote volume monitor. * monitor/Makefile.am: New file. * monitor/proxy/*: Add proxy volume monitor gio module (the D-Bus client side of out-of-process volume monitors) and a static library for providing the D-Bus server side of out of process volume monitors. * programs/gvfs-mount.c: Print activation uri for a volumes and icons for drives. Also unref volume monitor when no longer in use. svn path=/trunk/; revision=1815
* Add -p to create parents (using g_file_make_directory_with_parents, justRoss Burton2008-06-111-10/+36
| | | | | | | | | | | 2008-06-11 Ross Burton <ross@burtonini.com> * programs/gvfs-mkdir.c: Add -p to create parents (using g_file_make_directory_with_parents, just landed in glib). Patch from A Walton (#511367) svn path=/trunk/; revision=1807
* Make the bash completion script conditionally (#530772)Christian Kellner2008-05-201-2/+4
| | | | | | | | | | * configure.ac: * programs/Makefile.am: Allow to disable the installation of the bash completion scripts. Also make it possible to choose the directory where the file gets installed. Fixes #530772 svn path=/trunk/; revision=1770
* get rid of modelines The modelines were inconsistent and caused issuesBenjamin Otte2008-04-224-8/+0
| | | | | | | | | * */*.[ch]: get rid of modelines The modelines were inconsistent and caused issues when used in different editors. svn path=/trunk/; revision=1756
* Unbreak the gphoto2 backend by allowing automounting.David Zeuthen2008-04-071-1/+35
| | | | | | | | | | | | | | | 2008-04-07 David Zeuthen <davidz@redhat.com> * hal/ghalvolume.c (g_hal_volume_new): Unbreak the gphoto2 backend by allowing automounting. * programs/gvfs-mount.c (main, unmount_all_with_scheme): Add a new option --unmount-scheme * AUTHORS: Add cdda and gphoto2 backends svn path=/trunk/; revision=1726
* Add icon fallbacks for encrypted drives/media. (#525153)Christian Kellner2008-04-021-2/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | * hal/hal-utils.h: * hal/hal-utils.c: Create new files for utility functions and move get_disc_icon() and get_disc_name() here. Also create get_themed_icon_with_fallbacks() to create GThemedIcons with default fallbacks but with the ability to pass in another name to create the fallbacks from then the icon name. * hal/ghalmount.c: * hal/ghalvolume.c: Use newly created get_themed_icon_with_fallbacks () and pass in custom fallback name for encrypted mounts/volumes (#525153). * hal/Makefile.am: Add hal-utils.[hc] * programs/gvfs-mount.c: Display the icon names for mounts/volumes if the icon is a GThemedIcon. [Merged from gnome-2-22] svn path=/trunk/; revision=1720
* Fix wording of error messages. Don't include "Error renaming file" sinceWouter Bolsterlee2008-03-161-6/+6
| | | | | | | | | | 2008-03-16 Wouter Bolsterlee <wbolster@svn.gnome.org> * programs/gvfs-rename.c (main): Fix wording of error messages. Don't include "Error renaming file" since that's what the error->message might contain as well. svn path=/trunk/; revision=1661
* Add a little helper program that renames files by callingChristian Kellner2008-03-142-0/+84
| | | | | | | | | | | 2008-03-14 Christian Kellner <gicmo@gnome.org> * programs/Makefile.am: * programs/gvfs-rename.c: Add a little helper program that renames files by calling g_file_set_display_name (). svn path=/trunk/; revision=1659
* ANSIfication Same.Kjartan Maraas2008-03-071-2/+2
| | | | | | | | | 2008-03-07 Kjartan Maraas <kmaraas@gnome.org> * programs/gvfs-mount.c: ANSIfication * daemon/gvfsbackendnetwork.c: Same. svn path=/trunk/; revision=1597
* Error out if the user passes invalid flags and warn the user. Fixes bugA. Walton2008-03-068-0/+94
| | | | | | | | | | | | | | | | | | 2008-03-05 A. Walton <awalton@svn.gnome.org> * programs/gvfs-cat.c (main): * programs/gvfs-copy.c (main): * programs/gvfs-info.c (main): * programs/gvfs-ls.c (main): * programs/gvfs-move.c (main): * programs/gvfs-open.c (main): * programs/gvfs-save.c (main): * programs/gvfs-tree.c (main): Error out if the user passes invalid flags and warn the user. Fixes bug #520086. svn path=/trunk/; revision=1576
* don't mess up my terminal when entering passwordsBenjamin Otte2008-02-271-0/+3
| | | | | | | | | | 2008-02-27 Benjamin Otte <otte@gnome.org> * programs/gvfs-mount.c: (prompt_for): don't mess up my terminal when entering passwords svn path=/trunk/; revision=1407
* Better completionAlexander Larsson2008-02-262-30/+75
| | | | | | | | | | | 2008-02-26 Alexander Larsson <alexl@redhat.com> * programs/gvfs-bash-completion.sh: * programs/gvfs-ls.c: Better completion svn path=/trunk/; revision=1393
* Add gvfs-bash-completion.shAlexander Larsson2008-02-251-1/+1
| | | | | | | | | | | | | 2008-02-25 Alexander Larsson <alexl@redhat.com> * programs/Makefile.am (EXTRA_DIST): Add gvfs-bash-completion.sh * NEWS: Update for release svn path=/trunk/; revision=1375
* Prefer to return a GDaemonMount from an existing GDaemonVolumeMonitorDavid Zeuthen2008-02-254-7/+509
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-02-24 David Zeuthen <davidz@redhat.com> * client/gdaemonfile.c: * client/gdaemonvolumemonitor.c: * client/gdaemonvolumemonitor.h: Prefer to return a GDaemonMount from an existing GDaemonVolumeMonitor rather than rolling our own for GDaemonFile's g_file_find_enclosing_mount() implementation. This is to ensure that g_mount_get_volume() will work properly with mounts that are adopted by GVolume objects from other volume monitors. * configure.ac: Check for libgphoto2 * daemon/Makefile.am: * daemon/gvfsbackendcdda.c: Use HAL to detect when the disc is removed and then forcibly unmount the mount. Report size of disc. Hint the file manager to preview files. * hal/ghaldrive.c: * hal/ghalmount.c: * hal/ghalvolume.c: * hal/ghalvolumemonitor.c: * hal/ghalvolumemonitor.h: * hal/hal-pool.c: Ensure that audio and blank CD's are displayed (#514139). Read info.desktop.[icon|name] properties from hal and use these if found. Use proper icon for audio players and make the gphoto2 detection support it as well. Also check for subsystem when filtering on hal capabilities. Also revert the commit to ignore NFS mounts as gio will now only report an user visible mount if it's in /media or $HOME. Make LUKS encrypted volumes work. * daemon/Makefile.am: * daemon/gphoto2.mount.in: * daemon/gvfsbackendgphoto2.c: Land the gphoto2 backend. * programs/Makefile.am: * programs/gvfs-ls.c: Make the --hidden option work. Default to short listing and add a --long option. Implement new options --show-completions and --show-mounts that can be used for shell completions. * programs/gvfs-tree.c: New program * programs/gvfs-bash-completion.sh: Bash completion for gvfs; uses the new --show-completions and --show-mounts options in gvfs-ls. svn path=/trunk/; revision=1359
* Code cleanup from Kjartan: Removes unused code/variables. Uses rightAlexander Larsson2008-02-193-4/+3
| | | | | | | | | | | | | | | 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
* Update for the new mount flag argument.Alexander Larsson2008-02-112-9/+2
| | | | | | | | | | | | | | | | | 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
* Pass on uris unmodified to avoid roundtripping through GFile which can beAlexander Larsson2008-02-011-10/+24
| | | | | | | | | | | 2008-02-01 Alexander Larsson <alexl@redhat.com> * programs/gvfs-open.c: Pass on uris unmodified to avoid roundtripping through GFile which can be destructive. svn path=/trunk/; revision=1216
* Require glib 2.15.5 for g_file_query_default_handler ().Alexander Larsson2008-01-292-0/+149
| | | | | | | | | | | | | | 2008-01-29 Alexander Larsson <alexl@redhat.com> * configure.ac: Require glib 2.15.5 for g_file_query_default_handler (). * programs/Makefile.am: * programs/gvfs-open.c: Added gvfs-open app svn path=/trunk/; revision=1201
* C89 fixes from Jens Granseuer (#511838)Alexander Larsson2008-01-281-1/+2
| | | | | | | | | | | | 2008-01-28 Alexander Larsson <alexl@redhat.com> * daemon/gvfsbackendlocaltest.c: * programs/gvfs-cat.c: C89 fixes from Jens Granseuer (#511838) svn path=/trunk/; revision=1187
* Remove debug spew.Alexander Larsson2008-01-241-3/+33
| | | | | | | | | | | | | | | | | 2008-01-24 Alexander Larsson <alexl@redhat.com> * hal/ghalvolumemonitor.c: Remove debug spew. * hal/ghaldrive.c: * hal/ghalvolume.c: Implement identifier getters * programs/gvfs-mount.c: Show identifiers svn path=/trunk/; revision=1177
* Add a test mkdir programBastien Nocera2008-01-242-0/+73
| | | | | | | | | | 2008-01-24 Bastien Nocera <hadess@hadess.net> * programs/Makefile.am: * programs/gvfs-mkdir.c: (main): Add a test mkdir program svn path=/trunk/; revision=1174
* Add i18n/l10n to gvfs-cat, plus indentation. For details seeLuca Ferretti2008-01-182-69/+125
| | | | | | | | | | | | | | 2008-01-18 Luca Ferretti <elle.uca@libero.it> * programs/Makefile.am: * programs/gvfs-cat.c: (cat), (main): Add i18n/l10n to gvfs-cat, plus indentation. For details see http://mail.gnome.org/archives/gnome-vfs-list/2008-January/msg00020.html po/POTFILES.in: Added programs/gvfs-cat.c svn path=/trunk/; revision=1149
* Make g_mount_source_ask_password_async () public and addChristian Kellner2008-01-171-4/+40
| | | | | | | | | | | | | | | | | | 2008-01-17 Christian Kellner <gicmo@gnome.org> * common/gmountsource.c: * common/gmountsource.h: Make g_mount_source_ask_password_async () public and add g_mount_source_ask_password_finish (). * daemon/gvfsbackenddav.c: Use g_mount_source_ask_password_async instead of the sync version so we don't hang during auth. Few cleanups. * programs/gvfs-mount.c: Don't echo the password, if possible. svn path=/trunk/; revision=1146
* Update to new gio APIAlexander Larsson2008-01-142-2/+2
| | | | | | | | | | | | | | 2008-01-14 Alexander Larsson <alexl@redhat.com> * client/gdaemonfile.c: * daemon/gvfsbackendlocaltest.c: * daemon/gvfsbackendtrash.c: * programs/gvfs-monitor-dir.c: * programs/gvfs-monitor-file.c: Update to new gio API svn path=/trunk/; revision=1125
* Fix crash if no mount in volume.Alexander Larsson2008-01-111-4/+7
| | | | | | | | | | 2008-01-11 Alexander Larsson <alexl@redhat.com> * programs/gvfs-mount.c (list_volumes): Fix crash if no mount in volume. svn path=/trunk/; revision=1094
* Handle error reply from list_mounts.Alexander Larsson2008-01-101-12/+196
| | | | | | | | | | | | | | 2008-01-10 Alexander Larsson <alexl@redhat.com> * common/gmounttracker.c: Handle error reply from list_mounts. * programs/gvfs-mount.c: Add option to list mounts. Based on patch from nf2@scheinwelt.at svn path=/trunk/; revision=1089
* Add g_mount_source_get_operation() that lets you handle a remoteAlexander Larsson2008-01-091-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* Update to handle removed GDirectoryMonitor from API.Alexander Larsson2008-01-071-2/+2
| | | | | | | | | | | | | | | | | | | 2008-01-07 Alexander Larsson <alexl@redhat.com> * client/Makefile.am: * client/gdaemondirectorymonitor.[ch]: * client/gdaemonfile.c: * daemon/gvfsbackendtrash.c: * programs/gvfs-monitor-dir.c: Update to handle removed GDirectoryMonitor from API. * daemon/gvfsbackendsftp.c: Fix warnings svn path=/trunk/; revision=1077