n.l.o
May 7th, 2010, 04:27 PM
Hi.
I am trying to make a nautilus script so that I can open a special image format.
The images are actually catalogs, and to display the image I have to source some paths first.
My first and failed attempt at this looks like:
file: /home/user/.gnome2/nautilus-scripts/Display\ in\ MIRIAD
#!/bin/bash
gnome-terminal --command="mirenv; cgdisp device=/xs in=&NAUTILUS_SCRIPT_SELECTED_FILE_PATHS"
"mirenv" is a alias (set up in .bashrc to source the display program, "cgdisp")
It does not work, and since the terminal just pops up 0.5 seconds or so I can not se what is wrong.
So
1. Anybody see any obvious faults that I should correct
2. How do I get the terminal to stay after the command has be executed (sometimes cgdisp needs input)?
Cheers,
Magnus
I am trying to make a nautilus script so that I can open a special image format.
The images are actually catalogs, and to display the image I have to source some paths first.
My first and failed attempt at this looks like:
file: /home/user/.gnome2/nautilus-scripts/Display\ in\ MIRIAD
#!/bin/bash
gnome-terminal --command="mirenv; cgdisp device=/xs in=&NAUTILUS_SCRIPT_SELECTED_FILE_PATHS"
"mirenv" is a alias (set up in .bashrc to source the display program, "cgdisp")
It does not work, and since the terminal just pops up 0.5 seconds or so I can not se what is wrong.
So
1. Anybody see any obvious faults that I should correct
2. How do I get the terminal to stay after the command has be executed (sometimes cgdisp needs input)?
Cheers,
Magnus