Bugzilla will be upgraded to version 5.0 on December 2, 2018. The outage period for the upgrade will start at 0:00 UTC and have a duration of 12 hours
Bug 107865 - Panel does not respect %f for launchers
Panel does not respect %f for launchers
Product: Red Hat Linux Beta
Classification: Retired
Component: gnome-panel (Show other bugs)
All Linux
medium Severity high
: ---
: ---
Assigned To: Mark McLoughlin
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2003-10-23 16:50 EDT by Dan Williams
Modified: 2007-04-18 12:58 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-02-27 16:24:27 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Dan Williams 2003-10-23 16:50:46 EDT
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_.
Comment 1 Dan Williams 2003-10-23 16:51:35 EDT
Correction, does not fail, simply launches the program with no argument where it
should be passing the path to the file.
Comment 2 Leonard den Ottolander 2004-02-26 08:17:47 EST
Is this still an issue with FC 1?
Comment 3 Mark McLoughlin 2004-02-27 13:13:05 EST
Dan: just tried this out and it works fine for me. Any more details?
Comment 4 Dan Williams 2004-02-27 15:38:50 EST
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.
Comment 5 Dan Williams 2004-02-27 15:40:06 EST
%f:  args: 1 /home/boston/dcbw/thing (null)
%u:  args: 2 /home/boston/dcbw/thing

Comment 6 Dan Williams 2004-02-27 15:41:29 EST
gnome-panel- currently, but has existed since FC1 betas at
least, probably earlier
Comment 7 Mark McLoughlin 2004-02-27 15:47:34 EST
Hmm, I added a launcher to the panel which pointed at as script:


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 ?
Comment 8 Dan Williams 2004-02-27 16:24:27 EST
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


Note You need to log in before you can comment on or make changes to this bug.