Reply to topic

Launch environment configuration for Okular

User avatar simgunz
Registered Member
Posts
55
Karma
0
OS
I am using KDevelop to build and execute Okular, and I would like to ask what is the best way to configure a Execute and Debug launch.

My current approach is the following:
- Set CMAKE_INSTALL_PREFIX to my custom installation path
- Set a fixed executable (located in CMAKE_INSTALL_PREFIX/bin) in the run configuration (no project targets are available)
- Set Build and Install with target the whole Okular folder as Dependencies
- Set GDB as debugger
- Configure a new Environment where I set the env variables as specified in the build/prefix.sh file shipped with Okular

The problem is that when I run the Debug launch, Okular is not able to open the PDF, while everything works when running the Execute launch. This problems appeared few weeks ago. It seems that the debug launch does not use the custom environment I configured.

- Is it there a better approach to configure the Launch?
- KDE projects like Okular ship with a file called prefix.sh that can be sourced to configure the running environment. How can I configure a Launch Configuration to source this file?

Moreover, I have noticed that KDevelop gets confused if braces are present in the variable in the custom environment.
E.g.
OK: /my/path:$XDG_DATA_DIRS
Not working: /my/path:${XDG_DATA_DIRS}

Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], boblundgren, claydoh, fayl, Google [Bot], Hokasito, kde-camillem, Lupccs, rblackwell, Yahoo [Bot]