Copy website link after uploading on FTP

Bug #1502040 reported by faiwer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Shutter
Invalid
Undecided
Unassigned

Bug Description

Trying upload file to FTP. File uploaded, but website link not copied. CLI output:

===================================================
GLib-CRITICAL **: Source ID 146 was not found when attempting to remove it at /usr/bin/shutter line 7249.
*** unhandled exception in callback:
*** Can't call method "append_file_name" on an undefined value at /usr/bin/shutter line 10742.
*** ignoring at /usr/bin/shutter line 2884.
===================================================

Code:

===================================================
my $wuri = Gnome2::VFS::URI->new( $ftp_wurl_entry_dlg->get_text );
...
$wuri = $wuri->append_file_name( $short . $ext ); # => error
===================================================

I think it is becouse I using Mate in LinuxMint. May be "mate" (DE in Mint) has renamed "Gnome2" class or did something like this. I don't know perl :) My temporally fix:

===================================================
my $url = $ftp_wurl_entry_dlg->get_text;
my ( $short, $folder, $ext ) = fileparse( $file, qr/\.[^.]*/ );
$url = $url . $short . $ext;
$clipboard->set_text( $url );
===================================================

Tags: clipboard ftp
Revision history for this message
Vladislav (vlad7rpk) wrote :

Just install a dependency: libgnomevfs2-extra

Revision history for this message
Michael Kogan (michael-kogan) wrote :

faiwer: Is the solution by Vladislav working for you?

Changed in shutter:
status: New → Incomplete
Revision history for this message
faiwer (faiwer) wrote :

Photon: sorry, I don't know because it was in 2015 :)

Revision history for this message
Michael Kogan (michael-kogan) wrote :

Sorry for the small delay. :) I will mark this Invalid then, please open a new bug if you stumble across the same problem again!

Changed in shutter:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.