summaryrefslogtreecommitdiff
path: root/monitor
Commit message (Collapse)AuthorAgeFilesLines
...
* Build shared code for gphoto2 and mtp as a convenience libRoss Lagerwall2014-10-134-236/+15
| | | | | | | | Deduplicate code between gphoto2 and mtp by creating a convenience library call libgvfscommon-gphoto2 which is only built if either libmtp is used or gphoto2 with gudev is used. https://bugzilla.gnome.org/show_bug.cgi?id=736285
* gdu: add translators commentsOndrej Holy2014-05-301-0/+2
|
* build: Require gudev >= 147Ross Lagerwall2014-04-302-2/+0
| | | | | | | From release 147, the gudev API was marked as stable, so require that version. https://bugzilla.gnome.org/show_bug.cgi?id=722354
* afc: Check for iOS >= 3.1.2 to enable house arrestBastien Nocera2014-04-161-0/+54
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=676187
* Add goa-volume-monitor to gitignoreRoss Lagerwall2014-04-111-0/+1
|
* proxy volume monitor: Fix invalid readRoss Lagerwall2014-04-101-2/+2
| | | | | | | | When g_bus_unwatch_name () is called, it frees the associated Client and so the name variable becomes invalid. So, ensure that nothing uses the name variable after this call. https://bugzilla.gnome.org/show_bug.cgi?id=710679
* mtpvolume: implement symbolic iconsGiovanni Campagna2014-02-081-0/+26
| | | | | | | | The places sidebar in nautilus and the places menu in the shell use symbolic icons exclusively, so make sure one is provided, to avoid falling back to a generic "network mount" icon. https://bugzilla.gnome.org/show_bug.cgi?id=723251
* mtpvolume: improve volume nameGiovanni Campagna2014-02-081-1/+4
| | | | | | | Replace _ and - with spaces, and apply that pass on the product string too. https://bugzilla.gnome.org/show_bug.cgi?id=723251
* mtpvolume: fix a memory leakGiovanni Campagna2014-02-081-3/+1
| | | | | | Make the buffer really static, as the comment above documents. https://bugzilla.gnome.org/show_bug.cgi?id=723251
* Remove obsolete address info for the LGPLRoss Lagerwall2014-01-235-15/+10
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=721510
* udisks2: Initialize variables to prevent them being used uninitializedRoss Lagerwall2013-11-301-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=712382
* udisks2: Compile function only if we have udisks >= 2.0.90Ross Lagerwall2013-11-302-0/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=712382
* udisks2: Define SECRET_API_SUBJECT_TO_CHANGE to silence warningRoss Lagerwall2013-11-301-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=712382
* gvfsproxyvolumemonitordaemon: Turn off debugColin Walters2013-11-031-1/+1
| | | | | | | | | | | | | | Now that dbus-activated session services have their stdout/stderr connected to the systemd journal (as of recent dbus), these debug messages now show up by default. The #define DEBUG_ENABLED was apparently turned on by accident in commit 8315eaf84e52c6a00a4905f1f6a73182db9e8015 - we can just turn it off again. (Why is this not just g_debug()? Who knows...) https://bugzilla.gnome.org/show_bug.cgi?id=711365
* Update .gitignore filesRoss Lagerwall2013-11-012-0/+2
|
* goa: fix two compilation warningsOndrej Holy2013-09-261-2/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=591228
* afc: Bump libimobiledevice dependencyOndrej Holy2013-06-192-13/+0
| | | | | https://bugzilla.redhat.com/show_bug.cgi?id=951731 https://bugzilla.gnome.org/show_bug.cgi?id=702577
* afc: Update to libimobiledevice new apiOndrej Holy2013-06-181-3/+13
| | | | https://bugzilla.redhat.com/show_bug.cgi?id=951731
* goa: export the activation root for volumesGiovanni Campagna2013-06-132-13/+22
| | | | | | | | Now that we can be in charge of mounts even if we have the shadow mount infrastructure, we should export it so that tracking of the associated GDaemonMount works correctly. https://bugzilla.gnome.org/show_bug.cgi?id=696279
* GProxyVolume: extend the protocol so the volume monitor can force a call to ↵Giovanni Campagna2013-06-133-7/+28
| | | | | | | | | | | Mount Some volume monitors, like gnome-online-accounts, want their mount implementation to be called even though the volume has an activation root. Allow them to advertise so using the expansion fields of the volume DBus representation. https://bugzilla.gnome.org/show_bug.cgi?id=696279
* Fix compiler warningsBastien Nocera2013-04-022-10/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=695834
* gdu,udisks2: Make use of new udev propertyZeeshan Ali (Khattak)2013-02-182-2/+12
| | | | | | | | | | New udev/blkid expose more ISO9660 properties, including 'Boot System ID'. Existance of this property implies that media is bootable. The libosinfo udev rules that provided the 'OSINFO_BOOTABLE' property will soon be ditched as a result but we better keep the check for backward compatibility. https://bugzilla.gnome.org/show_bug.cgi?id=694007
* Fix some compiler warningsTomas Bzatek2013-02-061-1/+1
|
* Add GVfsGoaVolumeMonitorDebarshi Ray2013-02-059-1/+1296
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=686526
* Use g_list_free_full() where applicableTomas Bzatek2013-01-175-98/+41
|
* Merge branch 'mtp-backend'Philip Langdale2013-01-1111-1/+982
|\ | | | | | | | | | | | | | | | | | | This merge brings in the libmtp based backend for MTP devices. Previously, MTP devices were handled, with limited success by the GPhoto2 backend as MTP is nominally backwards compatible with PTP. The most serious limitation was that the GPhoto2 backend operated in a way that doesn't work reliably with Android 4.x based devices. This problem is rectified by the new MTP backend.
| * MTP: Review Feedback: Fix memory leaks and improve memory management.Philip Langdale2013-01-112-8/+5
| |
| * MTP: Review Feedback: Unconditional chain up finalize and dispose.Philip Langdale2013-01-112-6/+3
| |
| * MTP: Review Feedback: Fix warnings.Philip Langdale2013-01-111-2/+3
| |
| * MTP: Review Feedback: Remove use of static buffer.Philip Langdale2013-01-111-1/+3
| | | | | | | | | | Use a dynamically allocated buffer instead to avoid any multi-threading dangers.
| * MTP: Fix parentheses spacing.Philip Langdale2013-01-111-4/+4
| |
| * MTP: Fix review comments.Philip Langdale2013-01-111-10/+7
| |
| * MTP: Clean up formatting and style for MTP Volume Monitor.Philip Langdale2013-01-113-167/+141
| | | | | | | | We can consider the volume monitor done at this point.
| * MTP: Put conditional test in gphoto2 monitor for libmtp.Philip Langdale2013-01-111-1/+3
| |
| * MTP: Add conditional configuration against libmtp.Philip Langdale2013-01-111-1/+5
| |
| * MTP: Tidy up.Philip Langdale2013-01-115-32/+25
| |
| * MTP: Update .gitignorePhilip Langdale2013-01-111-0/+1
| |
| * MTP: Initial MTP volume monitor implementation.Philip Langdale2013-01-119-2/+1010
| |
| * MTP: Make gphoto2 monitor skip MTP devices.Philip Langdale2013-01-111-0/+5
| |
* | 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.
* | 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>
* | 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>
* | 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>
* | 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>