Creating a launcher for a small program... When the command includes %u, the file gets passed to the program correctly as a URL. However, using %f instead, which according to the Freedesktop.org spec should pass the full path to the file, fails and passes _nothing_.
Correction, does not fail, simply launches the program with no argument where it should be passing the path to the file.
Is this still an issue with FC 1?
Dan: just tried this out and it works fine for me. Any more details?
Mark, how are you testing it? #include <stdio.h> int main( int argc, char *argv[] ) { fprintf( stderr, "args: %d %s %s\n", argc, argv[0], argv[1] ); sleep( 5 ); exit( 0 ); } Then, using a launcher with the command "/path/to/program %f" and specifying "Run in Terminal", drag a document onto the launcher. The program pauses after printing its args. Note that %f is (null) while a %u actually works.
%f: args: 1 /home/boston/dcbw/thing (null) %u: args: 2 /home/boston/dcbw/thing file:///home/boston/dcbw/Desktop/openoffice-backtrace
gnome-panel-2.5.3.1-6 currently, but has existed since FC1 betas at least, probably earlier
Hmm, I added a launcher to the panel which pointed at as script: #!/bin/bash echo $@ > /tmp/t.tmp and then tried dragging a file onto it with both %f and %u and it worked. Could you confirm that works for you ?
Actual bug is becuase the gnome-desktop library uses gnome_vfs_uri_is_local() and that makes files from NFS mounted homedirs be skipped over. Upstreaming this bug, gnome.org #135629 http://bugzilla.gnome.org/show_bug.cgi?id=135629