Environment variable for selected object?
Posted: Mon Jul 09, 2012 2:10 pm
I am trying to write a bash script that will write a nautilus desktop config file (.desktop extention) for the currently selected object.
I have had some sucess using nautilus scipts because they have the environment variable $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
-perfect! using this I can create a nautilus-script (stored in ~/.gnome2/nautilus-scripts) to create a .desktop file when I right-click on an object which acts very much like a windows shortcut!
I now want to do this from a keyboard shortcut which would trigger this bash file but listing bash enviroment variables with
printenv
there is nothing relevent.
Can anyone suggest anything please, I am a relative noob (2years with Linux) but dont hold back.
I have had some sucess using nautilus scipts because they have the environment variable $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
-perfect! using this I can create a nautilus-script (stored in ~/.gnome2/nautilus-scripts) to create a .desktop file when I right-click on an object which acts very much like a windows shortcut!
I now want to do this from a keyboard shortcut which would trigger this bash file but listing bash enviroment variables with
printenv
there is nothing relevent.
Can anyone suggest anything please, I am a relative noob (2years with Linux) but dont hold back.