0

I'm using KDevelop. My program creates a picture file. So i'd like automatically open it after execution. HOw could I do this in the KDevelop??

I looked at this theme Kdevelop execute project with parameters and my run-configuration is shown at the picture.

In the KDevelop's Run Tab I got the following launch command:

Starting: /home/df/projects/topopt/build/topopt && xdg-open ~/projects/topopt/build/sample.gif

Image viewer doesn't launch. But this command is correct, image viewer launches if I type this string in the terminal .

enter image description here

Community
  • 1
  • 1
Ivan Kush
  • 2,958
  • 2
  • 23
  • 39
  • 1
    can you just keep the image viewer open and hit refresh any time after run ? not so convenient though. – ARH Jan 06 '15 at 21:37

1 Answers1

2

You can create a shell script, say run.sh, with the following commands

#!/bin/bash
/home/df/projects/topopt/build/topopt
xdg-open ~/projects/topopt/build/sample.gif

Then set the complete path to run.sh in front of Executable field

mahmood
  • 23,197
  • 49
  • 147
  • 242