summaryrefslogtreecommitdiff
path: root/programs
Commit message (Collapse)AuthorAgeFilesLines
* Minor string tweaks for translatorsTomas Bzatek2011-08-251-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=629116
* gvfs-open: Exit with error code > 0 when open failsRodrigo Silva2011-08-231-4/+8
| | | | | | | | | | | Previously gvfs-open exited with success (error code 0) even when open failed, either because file was not found or there was no default application registred to open it. Without easy testing for error codes, it was hard to use it in scripts. Now it exits with code 1 when any of the given files are either not found or its default application is not registered. https://bugzilla.gnome.org/show_bug.cgi?id=655470
* gvfs-copy: Do not use deprecated g_format_size_for_display()Vincent Untz2011-08-151-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=655474
* Add translation context. Reported by Jorge González. Fixes bug #592926.Kjartan Maraas2011-05-241-0/+1
|
* Cleanups and fixes for compiler warningsKjartan Maraas2011-03-171-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=641856
* gvfs-set-attribute: Remove non-enum switch caseBenjamin Otte2010-12-071-1/+0
| | | | The case resolved to the default anyway.
* Correctly detect the missing argumentsÉric Piel2010-06-231-2/+8
| | | | | | | argc contains the number of arguments, including the name of the program, so it is one more than expected. In addition, value must also be checked, otherwise segfault ensues.
* describe the unset typeÉric Piel2010-06-231-1/+1
| | | | | Commit 68607708bc34cfdc357a823fb6f909d3696fec78 added the unset type but forgot to add it to the documentation.
* Correct return values on error for programsBastien Nocera2010-03-056-8/+25
| | | | | | | Most of those programs would return 0 even on error. They should instead return 1 when an error occurred. https://bugzilla.gnome.org/show_bug.cgi?id=611891
* gvfs-save: cmd-line help fix newly introduced typo (oops) Christian Kellner2010-02-191-1/+1
|
* gvfs-save: Fix cmd-line help and error reportingChristian Kellner2010-02-181-1/+1
| | | Last part to fix bug #593045
* gvfs-move: Fix cmd-line help and error reportingChristian Kellner2010-02-181-4/+19
| | | Partly fixes bug #593045
* gvfs-copy: Fix cmd-line help and error reportingChristian Kellner2010-02-181-4/+19
| | | Partly fixes bug #593045
* gvfs-monitor-[dir|file]: Support for "move events"Christian Kellner2010-02-182-13/+61
| | | | | | GIO gained has support for file-monitoring "move events" since 2.23.4. Make use of those in gvfs-monitor-[dir|file] unless new commandline option "-N" is specified. (Bump glib requirement accordingly).
* 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