Opened 15 years ago

Closed 14 years ago

#875 closed Enhancement (invalid)

Use gio/gvfs to add non local torrent files

Reported by: LucaFerretti Owned by: charles
Priority: Low Milestone: None Set
Component: GTK+ Client Version: 1.11
Severity: Normal Keywords:
Cc:

Description

When gio is available, could be a good idea support following actions:

  • drag link to a torrent file (for example from a web browser or email message) and drop on transmission window (or tray icon) to add the linked torrent;
  • select File->Open, show the location entry in GTK+ filechooser dialog, enter a non local address linking to a torrent file (smb:// or http:// or other), press Enter or click Add in order to add the torrent file;

You just need (at run-time) proper gvfs backends, all APIs are available in GIO.

PS I don't know if you have to change the Exec key value in .desktop file in order to notify the application supports non local files.

Change History (4)

comment:1 Changed 15 years ago by charles

  • Priority changed from Normal to Low
  • Status changed from new to assigned

Do you have any code examples of apps that do this?

comment:2 Changed 15 years ago by charles

LucaFerretti?: ping

Do you have any code examples of apps that do this?

comment:3 Changed 15 years ago by LucaFerretti

No, unfortunately.

About d'n'd I think you have to add a check on dragged item: if it's a text with address, grab it using g_file_copy_async(). The only application able to open a link dragged on it are web browsers (Firefox and Epiphany) but maybe it's a gtkmozembed feature. Maybe check nautilus and epiphany code (nautilus created a .desktop file when you d'n'd the icon on ephy address entry).

About filechooser, currently the only GNOME/GTK+ applications with a simiar feature are Totem and Gedit, but both provide a File -> Open Location menu entry to type/paste the address to open. I've asked to do the same on Evince (see [this bug http://bugzilla.gnome.org/show_bug.cgi?id=515591]) but the reply was "You must be able to do it with file->open, otherwise it's a gtk bug". So maybe could be a GTK+ bug that could be fixed in future gtk+ stable release, that will internally use gio. Stay tuned.

comment:4 Changed 14 years ago by charles

  • Resolution set to invalid
  • Status changed from assigned to closed

I've left this ticket open for a long time because it sounds cool.

On the other hand, absolutely nobody else has asked for this functionality in the last six months. I don't think it's a good idea to bloat the codebase with features that nobody wants.

Note: See TracTickets for help on using tickets.