summaryrefslogtreecommitdiff
path: root/programs
Commit message (Collapse)AuthorAgeFilesLines
* programs: Fix a couple of warningsRoss Lagerwall2015-04-052-1/+18
| | | | | | | | | | | | | | | gvfs-monitor-file.c: In function ‘file_monitor_callback’: gvfs-monitor-file.c:63:3: warning: enumeration value ‘G_FILE_MONITOR_EVENT_RENAMED’ not handled in switch [-Wswitch] switch (eflags) ^ gvfs-monitor-file.c:63:3: warning: enumeration value ‘G_FILE_MONITOR_EVENT_MOVED_IN’ not handled in switch [-Wswitch] gvfs-monitor-file.c:63:3: warning: enumeration value ‘G_FILE_MONITOR_EVENT_MOVED_OUT’ not handled in switch [-Wswitch] gvfs-monitor-dir.c: In function ‘dir_monitor_callback’: gvfs-monitor-dir.c:65:3: warning: enumeration value ‘G_FILE_MONITOR_EVENT_RENAMED’ not handled in switch [-Wswitch] switch (eflags) ^ gvfs-monitor-dir.c:65:3: warning: enumeration value ‘G_FILE_MONITOR_EVENT_MOVED_IN’ not handled in switch [-Wswitch] gvfs-monitor-dir.c:65:3: warning: enumeration value ‘G_FILE_MONITOR_EVENT_MOVED_OUT’ not handled in switch [-Wswitch]
* completion: Fix parallel installationRoss Lagerwall2015-03-161-1/+1
| | | | | | | Use install-data-hook rather than install-data-local as install-data-hook runs after the other install rules have run. This is important for a parallel install so that the destination directory already exists when the symlinks are created.
* gvfs-open: Fix incorrect use of g_app_info_launch_default_for_uri()Bastien Nocera2015-01-281-13/+8
| | | | | | | | | | First, as we never check whether the passed arguments are indeed URIs, we'd be failing to work correctly for relative paths. Secondly, we would be running g_app_info_launch_default_for_uri() twice for no good reason. Finally, we were leaking the output of g_file_get_uri() https://bugzilla.gnome.org/show_bug.cgi?id=738690
* programs: install completion files for all commandsOndrej Holy2015-01-283-8/+47
| | | | | | | | | bash-completion has new completion loading code since version 1.90. The completion files are loaded on demand, with ${completionsdir}/${command} being sourced when a matching command is typed. This requires the completion files to be named for all commands. https://bugzilla.gnome.org/show_bug.cgi?id=738369
* gvfs-mount: Abort login if EOF is receivedRoss Lagerwall2015-01-211-3/+27
| | | | | | | | When reading a username, password or domain from the user, abort the login process if EOF is received. This eases scripting gvfs-mount and prevents an infinite loop with some backends. https://bugzilla.gnome.org/show_bug.cgi?id=742942
* gvfs-mount: Allow mounting as an anonymous userRoss Lagerwall2015-01-211-20/+56
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=742169
* gvfs-move: Allow specifying G_FILE_COPY_NO_FALLBACK_FOR_MOVERoss Lagerwall2014-10-171-0/+4
| | | | | | | Allow specifying G_FILE_COPY_NO_FALLBACK_FOR_MOVE when moving by passing "-C" to gvfs-move. https://bugzilla.gnome.org/show_bug.cgi?id=737510
* programs: allow bash completition for gvfs-rename and gvfs-set-attributeOndrej Holy2014-10-141-0/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=738369
* gvfs-mount: allow specifying G_MOUNT_UNMOUNT_FORCEOndrej Holy2014-10-131-2/+8
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=710986
* gvfs-cat: add missing space after colonOndrej Holy2014-10-131-1/+1
|
* gvfs-set-attribute: Actually implement "-n" flagRoss Lagerwall2014-09-271-1/+4
| | | | | | | Allow setting attributes on symlinks by actually implementing the "-n" flag rather than just ignoring it. https://bugzilla.gnome.org/show_bug.cgi?id=736696
* gvfs-save: Allow specifying G_FILE_CREATE_REPLACE_DESTINATIONRoss Lagerwall2014-08-141-0/+3
| | | | | | | | | | Allow specifying G_FILE_CREATE_REPLACE_DESTINATION when using gvfs-save with the -u flag or --unlink. I chose this because "unlink" represents what G_FILE_CREATE_REPLACE_DESTINATION does in principle: it unlinks the destination before replacing it, thereby losing any permissions or other attributes of the file. https://bugzilla.gnome.org/show_bug.cgi?id=734695
* gvfs-mount: Handle the ask-question signalRoss Lagerwall2014-05-101-0/+31
| | | | | | | | | | | | | | | | | | | | Present questions as a message and a numbered list of choices such that the user must enter one of the numbers. For example: """ Can't verify the identity of ... This happens when you log in to a computer the first time. The identity sent by the remote computer is ... If you want to be absolutely sure it is safe to continue, contact the system administrator. [1] Log In Anyway [2] Cancel Login Choice: 1 """ https://bugzilla.gnome.org/show_bug.cgi?id=728959
* gvfs-move: Show progress for interactive moveRoss Lagerwall2014-04-181-1/+2
| | | | | | If requested, show progress for an interactive move. https://bugzilla.gnome.org/show_bug.cgi?id=637543
* gvfs-move: Improve the interactive overwriteRoss Lagerwall2014-04-181-4/+5
| | | | | | | | Mimic the output of mv by displaying the full URI and put a space between the output and the user's input. Accept either lower or upper-case 'y'. https://bugzilla.gnome.org/show_bug.cgi?id=637543
* gvfs-move: Improve progress outputRoss Lagerwall2014-04-181-3/+26
| | | | | | | | Rather than spamming the screen with output, rate-limit the updates and make them display over each other. Also calculate the speed of transfer. https://bugzilla.gnome.org/show_bug.cgi?id=637543
* gvfs-copy: Show progress for interactive copyRoss Lagerwall2014-04-181-1/+2
| | | | | | If requested, show progress for an interactive copy. https://bugzilla.gnome.org/show_bug.cgi?id=637543
* gvfs-copy: Improve the interactive overwriteRoss Lagerwall2014-04-181-4/+5
| | | | | | | | Mimic the output of cp by displaying the full URI and put a space between the output and the user's input. Accept either lower or upper-case 'y'. https://bugzilla.gnome.org/show_bug.cgi?id=637543
* gvfs-copy: Make the progress output usableRoss Lagerwall2014-04-181-12/+26
| | | | | | | Rather than spamming the screen with output, rate-limit the updates and make them display over each other. https://bugzilla.gnome.org/show_bug.cgi?id=637543
* Report gvfs version when --version is usedRoss Lagerwall2014-04-1117-1/+147
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=727132
* gvfs-tree: End GOptionEntry array with NULLRoss Lagerwall2014-04-021-0/+1
| | | | | | | Prevent a segfault (revealed on OpenBSD) by null-terminating the GOptionEntry array. https://bugzilla.gnome.org/show_bug.cgi?id=727447
* build: replace obsolete INCLUDES by CPPFLAGSOndrej Holy2014-01-171-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=722354
* programs: Escape string properlyRoss Lagerwall2013-11-071-2/+2
| | | | | | | | Use an unsigned char to avoid implementation-defined behavior of a right shift. Shift by 4 rather than 8 to get the second half of a byte. https://bugzilla.gnome.org/show_bug.cgi?id=711457
* Update .gitignore filesRoss Lagerwall2013-11-011-0/+1
|
* Show URI in gvfs-infoAlexander Larsson2013-10-161-3/+7
|
* gvfs-ls: added option to output URIsIhar Hrachyshka2013-10-161-4/+18
| | | | | | | | | | Add a new -u option to gvfs-ls utility which will make it output properly escaped URIs. These URIs may then be passed to other gvfs-* tools. Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com> https://bugzilla.gnome.org/show_bug.cgi?id=683295
* Use g_list_free_full() where applicableTomas Bzatek2013-01-171-12/+6
|
* gvfs-info: Print out symbolic-icon tooWilliam Jon McCann2012-12-031-2/+7
| | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=684328 Signed-off-by: Tomas Bzatek <tbzatek@redhat.com>
* Add a cmdline way to empty the trashMatthias Clasen2012-11-251-1/+44
| | | | Support gvfs-trash --empty to empty the trash.
* Remove calls to g_type_init(), bump GLib required versionColin Walters2012-10-3017-34/+0
| | | | | | See http://git.gnome.org/browse/glib/commit/?id=2002479c02fa6e468fc3f67ddc663657a52ebde8 https://bugzilla.gnome.org/show_bug.cgi?id=687236
* Add support for getting symbolic iconsWilliam Jon McCann2012-08-301-5/+32
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=681458
* Improve translations a bit and add hint for etagFelix Möller2012-08-231-0/+3
| | | | Closes https://bugzilla.gnome.org/show_bug.cgi?id=595087
* Adding a translator comment for misleading attribute nameFelix Möller2012-08-231-0/+2
| | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=595070
* 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-3019-36/+36
| | | | | | | | | | | | | | | 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>
* programs: Return proper exit value when something failsTomas Bzatek2012-07-204-25/+65
| | | | | | The rule for the returning value and multiple arguments is to go through all of them and return non-zero exit code when one or more fails.
* Improve wordingMatthias Clasen2012-06-291-2/+2
| | | | One can trash directories too, thus use LOCATION instead of FILE.
* Reorder some optionsMatthias Clasen2012-06-291-1/+1
| | | | | Move --detail to the end so it comes after the options that it affects, in help output.
* gvfs-save: use - instead of _ in long optionsMatthias Clasen2012-06-291-1/+1
| | | | The option --print_etag was misnamed. Now it is --print-etag.
* Apply some love to the gvfs utilitiesMatthias Clasen2012-06-2917-164/+396
| | | | | | | | | | | This makes the --help output more consistent across the utilities. - Capitalize parameters - Make summaries full sentences - Shorten some overlong strings - Strip . off option descriptions - Make descriptions of identical options the same - Improve error handling for option parsing Also, do proper gettext setup in all utilities.
* gvfs-open: Construct full URI for local pathsTomas Bzatek2012-06-251-3/+18
| | | | | | | | Apparently g_app_info_launch_default_for_uri() can't handle invalid URIs like the plain local path, returning G_IO_ERROR_NOT_SUPPORTED. Let's go through GFile to get a full URI as a fallback. https://bugzilla.gnome.org/show_bug.cgi?id=676313
* build: Install bash completion files in /usr/share/Tomas Bzatek2012-06-222-2/+2
| | | | | | | bash-completion upstream has changed the preferred location for completion scripts, let's make it consistent across our stack. https://bugzilla.gnome.org/show_bug.cgi?id=678537
* gvfs-open: use g_app_info_launch_default_for_uri()Dan Winship2012-06-201-70/+14
| | | | | | | g_app_info_launch_default_for_uri() didn't exist when gvfs-open was first written, but now that it does, there's no reason not to use it. https://bugzilla.gnome.org/show_bug.cgi?id=676313
* gvfs-mount: add new -e option to eject a mountDavid Zeuthen2012-05-151-0/+49
| | | | | | Like the rest of gvfs-mount(1), this is mostly useful for debugging. Signed-off-by: David Zeuthen <davidz@redhat.com>
* programs: Print something when no recommended appsBastien Nocera2012-01-091-0/+4
|
* programs: List recommended applications tooBastien Nocera2012-01-061-0/+11
| | | | As used by the app chooser button
* Support get_sort_key() in out-of-process volume monitors and gvfs-mount(1)David Zeuthen2011-10-181-0/+13
| | | | | | | | | | | | | This is detailed in this bug https://bugzilla.gnome.org/show_bug.cgi?id=661711 Also extend the private D-Bus protocol used between the client- and service-side for out-of-process volume monitors. In particular, introduce a new a{sv} member that we can use in the future to for expansion without breaking ABI. Signed-off-by: David Zeuthen <davidz@redhat.com>
* Purge hardcoded -DG_DISABLE_DEPRECATEDColin Walters2011-10-121-2/+1
| | | | | Especially now that deprecations are proper gcc warnings, no need to hardcode this.
* programs: Add simple gvfs-mime test applicationBastien Nocera2011-08-262-0/+173
| | | | | | List the apps registered for a particular mime-type, and set a particular application as the default handler for a mime-type.
* Minor string tweaks for translatorsTomas Bzatek2011-08-251-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=629116