2

Running Ubuntu 12.04.3 LTS

In terminal mode executable would be run as:

../xpdp1 -i ../inp/maxwello.inp

Is there a way I can click on the xpdp1 executable in Xwindows and somehow pass the -i ../inp/maxwello.inp to it?

Thanks.

Radu Rădeanu
  • 166,822
  • 48
  • 327
  • 400
user259216
  • 21
  • 1

1 Answers1

1

Not directly, no. You'd need to make a launcher (there are other guides too). You could either hard-code the path in or you could use something like zenity:

sh -c '../xpdp1 $(zenity --file-selection)'
Oli
  • 289,791
  • 117
  • 680
  • 835