← Back to team overview

desktop-packages team mailing list archive

[Bug 833520] [NEW] nautilus script variables not set in search results window

 

Public bug reported:

I can use nautilus scripts in any folder but I just realized I can't use them (at least to act a single selected file) in the "search results" folder.
I think that the problem is that the following variable is not set for some reason in the "search results" folder:
$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS

I want to make a simple script to copy the location of that file. The following script works fine except in that folder:
echo "`dirname "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS"`" | perl -pe 's/\n//' | parcellite

This behavior was confirmed by another user. See the following thread:
http://ubuntuforums.org/showthread.php?t=1830402

I am using 11.04 with Unity, 64-bit, Nautilus version Installed:
1:2.32.2.1-0ubuntu13

** Affects: nautilus (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to nautilus in Ubuntu.
https://bugs.launchpad.net/bugs/833520

Title:
  nautilus script variables not set in search results window

Status in “nautilus” package in Ubuntu:
  New

Bug description:
  I can use nautilus scripts in any folder but I just realized I can't use them (at least to act a single selected file) in the "search results" folder.
  I think that the problem is that the following variable is not set for some reason in the "search results" folder:
  $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS

  I want to make a simple script to copy the location of that file. The following script works fine except in that folder:
  echo "`dirname "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS"`" | perl -pe 's/\n//' | parcellite

  This behavior was confirmed by another user. See the following thread:
  http://ubuntuforums.org/showthread.php?t=1830402

  I am using 11.04 with Unity, 64-bit, Nautilus version Installed:
  1:2.32.2.1-0ubuntu13

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/833520/+subscriptions


Follow ups

References