gmtp bad default download path (/).

Bug #934319 reported by Marius Gedminas on 2012-02-17
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gmtp (Ubuntu)
Low
Alessio Treglia

Bug Description

I've an Archos 101 G9 tablet with Android 3.2. It doesn't support USB mass storage, but supports MTP. I can list and download files using the command-line mtp-files and mtp-getfile tools. I can list but cannot download any files using gmtp.

When the download fails I see this on the console:

    Error getting file from MTP device.
    Error 1: LIBMTP_Get_File_To_File(): Could not create file.

strace -f -e open gmtp tells me it is trying to create the file in the root directory, which, obviously, is not going to work:

    [pid 17260] open("//filename.txt", O_RDWR|O_CREAT|O_TRUNC|O_LARGEFILE, 0740) = -1 EACCES (Permission denied)

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: gmtp 1.2.0-1
ProcVersionSignature: Ubuntu 3.0.0-16.28-generic 3.0.17
Uname: Linux 3.0.0-16-generic i686
ApportVersion: 1.23-0ubuntu4
Architecture: i386
Date: Fri Feb 17 18:19:15 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
ProcEnviron:
 LANGUAGE=lt_LT:lt:en_GB:en
 LC_CTYPE=lt_LT.UTF-8
 PATH=(custom, user)
 LANG=lt_LT.UTF-8
 SHELL=/bin/bash
SourcePackage: gmtp
UpgradeStatus: Upgraded to oneiric on 2011-10-13 (126 days ago)

Related branches

Marius Gedminas (mgedmin) wrote :
Marius Gedminas (mgedmin) wrote :

Ah, I see the default download path is set to /. That's... not very clever.

summary: - gmtp cannot download files
+ gmtp bad default download path (/).
Marius Gedminas (mgedmin) wrote :

Ideally the 'Always show Download Path?' setting would be checked True, which means gmpt would present the file chooser to the user when she tries to download something.

And the default Download Path ought to be something saner, like ~/Downloads.

Marius Gedminas (mgedmin) wrote :

Forwarded upstream to https://sourceforge.net/p/gmtp/discussion/bugs/thread/3efb66f4/ (I was unable to find a 'New ticket' button so had to create a forum post).

Changed in gmtp (Ubuntu):
importance: Undecided → Wishlist
importance: Wishlist → Low
assignee: nobody → Alessio Treglia (quadrispro)
status: New → In Progress
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gmtp - 1.3.1-2

---------------
gmtp (1.3.1-2) unstable; urgency=low

  * Fix 0001-missing_linker_flag.patch, it wasn't actually applied when
    linked against GTK3.
  * Really build with --as-needed.

 -- Alessio Treglia <email address hidden> Mon, 20 Feb 2012 15:44:30 +0100

Changed in gmtp (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers