summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update NEWS for 1.15.1 release1.15.1Tomas Bzatek2012-12-181-0/+25
|
* build: Bump required libsoup versionTomas Bzatek2012-12-181-1/+1
|
* dav: Use application/octet-stream content type for uploadingTomas Bzatek2012-12-181-1/+1
| | | | | | | | The content_type argument is required to be set for soup_message_set_request() if passing data in. Using "application/octet-stream" makes it work, though I'm not sure whether it's accepted by all dav servers. https://bugzilla.gnome.org/show_bug.cgi?id=687757
* http: Set use-thread-context property on async SoupSessionTomas Bzatek2012-12-181-0/+2
| | | | | | Apparently SoupRequester needs this to be set TRUE. https://bugzilla.gnome.org/show_bug.cgi?id=687757
* dav: kill SoupOutputStreamDan Winship2012-12-184-520/+28
| | | | | | | | | | | SoupOutputStream was never particularly useful, since we ended up not doing chunked requests (since server support for them is mostly nonexistent). So kill SoupOutputStream off and just use a GMemoryOutputStream instead. https://bugzilla.gnome.org/show_bug.cgi?id=687757 Signed-off-by: Tomas Bzatek <tbzatek@redhat.com>
* http: Simplify job failure handlingDan Winship2012-12-183-29/+16
| | | | | | | | | | gvfsbackendhttp defined g_vfs_job_failed_from_http_status(), but didn't export this, so gvfsbackenddav was sort of forced to reimplement it. Fix that by exporting it as http_job_failed(). https://bugzilla.gnome.org/show_bug.cgi?id=687757 Signed-off-by: Tomas Bzatek <tbzatek@redhat.com>
* http: replace SoupInputStream with SoupRequestDan Winship2012-12-188-1034/+697
| | | | | | | | | | | | | | | | Replace the hacky SoupInputStream with a new GVfsHttpInputStream that is a wrapper around SoupRequest. (We need a wrapper stream rather than just using SoupRequest directly because we want the stream here to be seekable, which requires cancelling and re-sending the HTTP request and getting a new underlying stream.) The http and dav backends still use both a sync and an async SoupSession, even though this is no longer necessary, since changing this would require a lot of rewriting of code that currently works. https://bugzilla.gnome.org/show_bug.cgi?id=687757 Signed-off-by: Tomas Bzatek <tbzatek@redhat.com>
* Updated Polish translationPiotr Drąg2012-12-161-207/+206
|
* Updated Galician translationsFran Diéguez2012-12-151-98/+105
|
* udisks2: don't set GDrive.can_stop to TRUE if drive has removable mediaDavid Zeuthen2012-12-111-7/+12
| | | | | | | If the drive is using removable media, we want the shell and file manager to eject the media, not turn the drive off. Signed-off-by: David Zeuthen <zeuthen@gmail.com>
* If a drive is hotplugged and CanPowerOff is TRUE, set can_stop to TRUEDavid Zeuthen2012-12-114-8/+197
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this change, USB-connected drives that appear *during* the user session will now be powered off when the user clicks the "Eject" icon in the GUI. This involves powering off the USB port typically resulting in LEDs and other user-visible features turning off. In particular, bus-powered HDDs will completely turn off by virtue of being, well, bus-powered. This is generally what users expect and should make them feel all cozy, warm inside and, most importantly, more confident removing the device now that the LED is off. Or something. Since we only do this for devices detected *during* the user session, we should not run into problems with internal USB devices such as laptop SD card readers or the various 4-in-1 flash card readers in many workstations. This is actually important because removing the power to the USB port of an "internal" device is generally a bad idea as it requires a system restart to make the laptop BIOS power the port up again (or the user to crack open the chassis). (No, unfortunately there is no *reliable* way to determine if a USB device is "internal" (e.g. reachable and/or servicable by the user) or not. There are a couple of mechanisms - one is to look at various USB device descriptors - but none of them seem very reliable. So instead we simply look at whether the device is hotplugged.) See also this udisks commit http://cgit.freedesktop.org/udisks/commit/?id=81dcb6eeaeceb6c6faae1a40a5b34a65cd5af653 introducing the Drive:CanPowerOff property and the Drive.PowerOff() method. Signed-off-by: David Zeuthen <zeuthen@gmail.com>
* udisks2: Initialize local variables to NULLTomas Bzatek2012-12-111-6/+6
| | | | | | | We need to set initial value to local variables we're about to use later in the code. Found the volume monitor segfaulting on stable udisks-2.0.0
* proxy volume monitor: Remove unnecessary gotoTomas Bzatek2012-12-101-9/+2
| | | | | A matter of developer's taste, but since the function has been simplified a lot, no need to keep the goto around.
* proxy volume monitor: Don't leak the_volume_monitors hash tableTomas Bzatek2012-12-101-1/+2
| | | | | | | | | The the_volume_monitors hash table is a shared global instance, make sure to only initialize it once. Based on a patch by Tim Lunn <tim@feathertop.org> https://bugzilla.gnome.org/show_bug.cgi?id=689946
* proxy volume monitor: Clarify when mutex is hold on constructionTomas Bzatek2012-12-101-0/+1
| | | | | | Found by reviewing usage of the global lock, this place is not obvious whether is inside the lock or not. Let's add a simple comment to make it clear.
* afc: Add missing break statementTomas Bzatek2012-12-071-0/+1
| | | | Found by Coverity Scan analysis
* fuse: Make truncating more robustTomas Bzatek2012-12-071-3/+4
| | | | | Don't try to seek if there was an error during padding. Also report seek errors.
* Fix use of uninitialized valuesTomas Bzatek2012-12-073-4/+13
|
* Fix some potential NULL dereferencesTomas Bzatek2012-12-072-3/+3
|
* daemon: Add missing va_end() callTomas Bzatek2012-12-071-0/+1
|
* http: Provide edit-name whether display-name is also requested or notJonathan Matthew2012-12-061-7/+4
| | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=625741 Signed-off-by: Tomas Bzatek <tbzatek@redhat.com>
* udisks2: add support for mount option x-gvfs-symbolic-iconDavid Zeuthen2012-12-052-8/+29
| | | | | | | ... and also the new Block:HintSymbolicIcon icon just added to udisks master. Signed-off-by: David Zeuthen <zeuthen@gmail.com>
* Updated Spanish translationDaniel Mustieles2012-12-051-60/+55
|
* udisks2: get icons via UDisksObjectInfo for block devices that are not drivesDavid Zeuthen2012-12-051-0/+21
| | | | Signed-off-by: David Zeuthen <zeuthen@gmail.com>
* udisks2: don't leak GIcon when applying hintsDavid Zeuthen2012-12-051-0/+1
| | | Signed-off-by: David Zeuthen <zeuthen@gmail.com>
* 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>
* smb: Report proper error on do_query_fs_info()Tomas Bzatek2012-12-031-1/+7
| | | | | | We always reported success despite storing the smb call result. https://bugzilla.gnome.org/show_bug.cgi?id=687778
* client: Set default timeout to infinite for all GDaemonFile methodsTomas Bzatek2012-12-031-0/+7
| | | | | | | Certain operations may take a lot of time to complete, don't timeout on that. Use cancellable if you need to control the flow. https://bugzilla.gnome.org/show_bug.cgi?id=687534
* gvfs-test: Add tests for trash://Martin Pitt2012-11-291-0/+135
| | | | | This covers trashing a file from $HOME (both API and CLI), trying to trash a file from /tmp/, and handling trashing files with the same path.
* gvfs-test: Move temporary D-BUS setup from run-in-tree.shMartin Pitt2012-11-293-20/+89
| | | | | | | | | | | | | | | | | | | | For adding further tests such as for trash://, we want to be able to use a temporary private $XDG_DATA_HOME, and also ensure that we do not touch the user's configuration in any way by setting a temporary $XDG_CONFIG_HOME as well. (The latter needs to be in the actual $HOME until https://bugzilla.gnome.org/show_bug.cgi?id=142568 gets fixed) To achieve this, set up the temporary session D-BUS in gvfs-test itself (so that it sees our new XDG environment variables), and stop setting up a session D-BUS in run-in-tree.sh when running under make. Retain the funtionality in run-in-tree.sh for calling the script manually. This also allows us to capture the output of the D-BUS daemon and its attached processes. Show its stdout and stderr on test case failures for easier debugging, and enable general GLib and gvfs debug messages. In addition this simplifies the handling of $LIBSMB_PROG, as we can now set it in the test suite and can stop setting it in the Makefile.
* gvfs-test: Skip Sftp.test_unknown_host when not in gvfs-testbedMartin Pitt2012-11-291-1/+5
| | | | | | | | | When running under the normal user account, the StrictHostKeyChecking option is client-configurable behaviour which cannot be temporarily changed. Skip the test entirely in this case instead of exfailing it, as it does not test anything meaningful then. Drop the exfail so that the test must succeed when running under gvfs-testbed.
* udisks2: fix symbolic icons for devices without an UDisksDriveDavid Zeuthen2012-11-284-2/+22
| | | | | | | We were returning folder-remote-symbolic which is incorrect since that should only be used for network filesystems. Signed-off-by: David Zeuthen <zeuthen@gmail.com>
* Updated Slovenian translationMatej Urbančič2012-11-261-723/+437
|
* Fix symlink target in query_info_reply() for sftp backendAlexandre Rostovtsev2012-11-261-0/+2
| | | | | | | | | | | | In SSH_FXP_NAME messages, the name field is preceded by a uint32 count field. query_info_reply() in gvfsbackendsftp.c did not take the existence of the count field into account, and so set symlink targets incorrectly. For a simple demonstration, use gvfs-info to stat a symlink on an ssh mount. https://bugzilla.gnome.org/show_bug.cgi?id=652535
* Assamese translation updatedNilamdyuti Goswami2012-11-261-37/+33
|
* gvfs-test: Skip Dav tests if http is disabledMartin Pitt2012-11-261-0/+6
| | | | | Skip the Dav tests instead of failing when running against the build tree and http support is disabled.
* tests/run-in-tree.sh: Disable service activation for local D-BUSMartin Pitt2012-11-261-1/+4
| | | | | | This tries to spawn gnome-keyring which can potentially mess up user's real keyrings. It also causes long timeouts during D-BUS activation which make the testsuite painfully slow.
* gvfs-test: Add tests using the introspected Gio APIMartin Pitt2012-11-261-7/+181
| | | | | | So far we were only using the command line programs. This adds some tests that exercise the Gio API through gobject-introspection, covering archive mounts, and anonymous and authenticated FTP.
* Add a cmdline way to empty the trashMatthias Clasen2012-11-252-1/+50
| | | | Support gvfs-trash --empty to empty the trash.
* Assamese translation updatedNilamdyuti Goswami2012-11-231-147/+155
|
* Updated Galician translationsFran Diéguez2012-11-221-146/+142
|
* Updated Dutch translationWouter Bolsterlee2012-11-221-831/+1053
|
* Use UDisksObjectInfo API from udisks 2.0.90, if available, for symbolic iconsDavid Zeuthen2012-11-203-32/+167
| | | | | | | | | | | | Without this fix volumes would fall back to folder-remote-symbolic which is obviosly wrong. With this fix, it looks correct, see http://people.freedesktop.org/~david/gvfs-udisks2-symbolic-icons.png Right now we only use the API if it's available - things still work with udisks >= 1.97. Signed-off-by: David Zeuthen <zeuthen@gmail.com>
* Updated Spanish translationDaniel Mustieles2012-11-201-115/+119
|
* gvfs-test: Fix logic error in waiting for promptMartin Pitt2012-11-201-6/+6
| | | | | | | | Do not try to check the prompt string if it is None (which can happen for non-blocking streams). Also add a (commented out) debug print to help with figuring out why some of the calls take a very long time.
* [l10n] Updated German translationMario Blättermann2012-11-181-130/+125
|
* Updated Korean translationChangwoo Ryu2012-11-071-76/+106
|
* gvfs-test: Fix Drive tests for Python 3.3Martin Pitt2012-11-061-4/+3
| | | | | | | | | Python 3.3 changed the behaviour of subprocess.Popen() with universal_newlines=True: now stdin is expected to be a str as well, which makes sense, but didn't work that way in Python 3.2. Change the code to explicitly recode and not use universal_newlines=True, so that this works for both Python versions.
* Updated Slovenian translationMatej Urbančič2012-11-021-167/+168
|
* Capitalize acronymscjl2012-11-022-12/+12
| | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=683763 Signed-off-by: Tomas Bzatek <tbzatek@redhat.com>