Bug 107865
Summary: | Panel does not respect %f for launchers | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux Beta | Reporter: | Dan Williams <dcbw> |
Component: | gnome-panel | Assignee: | Mark McLoughlin <markmc> |
Status: | CLOSED UPSTREAM | QA Contact: | David Lawrence <dkl> |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | beta1 | CC: | leonard-rh-bugzilla |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-02-27 21:24:27 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Dan Williams
2003-10-23 20:50:46 UTC
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 |