After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 617058 - %M parameter introduces extraneous white space
%M parameter introduces extraneous white space
Status: RESOLVED FIXED
Product: filemanager-actions
Classification: Other
Component: general
2.30.x
Other Linux
: Normal normal
: ---
Assigned To: Nautilus-actions Maintainer(s)
Nautilus-actions Maintainer(s)
: 617210 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-04-28 09:08 UTC by brunogirin
Modified: 2010-06-10 21:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Python script that displays received parameters in a messge dialogue (144 bytes, text/x-python)
2010-04-28 09:08 UTC, brunogirin
Details

Description brunogirin 2010-04-28 09:08:16 UTC
Created attachment 159768 [details]
Python script that displays received parameters in a messge dialogue

The %M parameter introduces additional white space, which means that when passing a parameter like --app=%M, what is actually passed to the command is --app= %M, resulting in the command seeing two parameters rather than one.

Steps to reproduce:
1. Download the attached python script and store it in your local directory
2. Make the script executable (chmod +x showparam.py)
3. Open the Nautilus Actions Configuration GUI
4. Create a new action called "Show parameters" with:
 * Command path: the path to showparam.py
 * Command parameters: --app=%M
5. Save the new action
6. Open Nautilus
7. Right click on any file and select "Show parameters"
8. A message dialogue opens with each parameter the script received on its own line

Expected behaviour
The text in the message dialogue shows one single parameter (one line)

Actual behaviour
The text in the message dialogue shows that two parameters where passed:
 * --app=
 * the full path of the file (%M)
Comment 1 brunogirin 2010-04-28 09:12:08 UTC
This bug was originally reported in Ubuntu. The Launchpad bug report is here: https://bugs.launchpad.net/nautilus-actions/+bug/570060
Comment 2 Mike 2010-04-28 10:42:46 UTC
How do I confirm this, just say "confirmed" or what?
Comment 3 Pierre Wieser 2010-05-17 18:24:16 UTC
Fixed in commit edfc5dd8b56762d509827dfc71a85f7936bcb138.
Sorry for the delay!
Comment 4 Pierre Wieser 2010-06-10 21:22:03 UTC
*** Bug 617210 has been marked as a duplicate of this bug. ***