| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
sbin directories may contain commands we use yet may not be included
in $PATH.
https://bugzilla.gnome.org/show_bug.cgi?id=691568
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Some distros use the original cdrtools where it is called differently
(mkisofs), and argument compatibility between the two is not guaranteed. Also,
the Drive tests already use pre-generated images in test/files/, so
pre-generate the remaining missing image (ISO9660 with Joliet extensions)
instead of building them at test time.
Part of https://bugzilla.gnome.org/show_bug.cgi?id=691568
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| |
| |
| |
| |
| |
| | |
This introduces a path normalization helper that turns filenames
into entity IDs where needed to allow the push of a directory
to the device to work.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
If the client, usually Nautilus, ends up trying to find a file
by name instead of ID, there might not be a match. We should
return NOT_FOUND explicitly, as there is no libmtp error generated
in this case.
This situation arises after:
* A file is renamed
* A directory is created
* A file is created (which actually fails)
Refreshing the Nautilus view will get Nautilus back in sync.
|
| |
| |
| |
| | |
The preview icon and the main icon shouldn't get mixed up...
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Use a dynamically allocated buffer instead to avoid any
multi-threading dangers.
|
| |
| |
| |
| |
| | |
* Use g_clear_object()
* Remove unnecessary code.
|
| | |
|
| | |
|
| |
| |
| |
| | |
Whoops
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Tomas explained the correct way to tell Nautilus to recurse directories
and issue individual copy operations for the contents, and it works!
Note that in the case of push, the contents don't copy correctly as
the push path is incorrect (uses filename instead of file id). I
can compensate for this, but that will be a separate change.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Theoretically, the event check could fire during unmount, resulting
in access to invalid backend state. We can try and minimise the
chance of this happening but can't elimiate it completely as the
LIBMTP_Read_Event call cannot occur with a lock or ref held as it
blocks and cannot be interrupted as part of the shutdown process.
If a lock was held, it would lead to a deadlock, and if a ref was
held, the backend would never finalize.
As it is, the race is now narrowed so that it's only applicable if
the unmount occurs at the point between where the MTP device is
looked up and when Read_Event is called.
And even before this change the race was incredibly rare as you'd
have to induce an MTP event in the middle of unmounting.
Finally, crashing while trying to terminate isn't the end of the
world.
|
| |
| |
| |
| | |
And fix reference leaks.
|
| |
| |
| |
| | |
Used in all appropriate locations.
|
| |
| |
| |
| |
| | |
Make sure that a file isn't named starting with valid digits before
deciding whether a name based lookup is necessary.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
It's better than nothing.
|
| | |
|
| |
| |
| |
| |
| |
| | |
Added error translation
Fixed some formatting
Removed use of C++ comment
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
No, this doesn't make recursive pull magically work, but it allows
a pull on a directory to make that directory, or silently succeed
if the directory exists already.
This does have the beneficial effect that file-roller can now
compress a directory from an mtp mount - if you ignore the fact
that it doesn't use display names.
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Starting to switch over to a DEBUG macro, and removed unnecessary
try_mount method.
|
| |
| |
| |
| |
| | |
Semantically, these shouldn't be set if they're not really
there. It's better to let gvfs come up with the values.
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
This change adds an event listener to receive libmtp events. The
primary use for this is detecting when stores appear after a phone
is unlocked. That way you can plug it in, then unlock it, and then
you'll see the stores appear automatically.
|
| |
| |
| |
| |
| | |
The documentation isn't clear that you have to clean these up, but
it's pretty obvious that you do.
|
| |
| |
| |
| |
| |
| | |
Removing the debug spew for each file with a thumbnail, and turned
off LOCAL previews. The preview process is so costly that it should
only be done if the user requests ALWAYS.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
I have no idea if this really works, as I don't have a device
that uses it.
|
| |
| |
| |
| | |
We can consider the volume monitor done at this point.
|