Bash Script to Run Davinci with Progl

So I got Davinci Working on Ubuntu 20.04 with my Polaris RX 580, by installing only the OpenCL component of the amdgpu-pro package and as suggested in another post, copying the libgl components of the said driver to a pro/driver folder in my home.

so by adding this;

progl() {

export LD_LIBRARY_PATH="/home/alement/pro/drivers:${LD_LIBRARY_PATH}"

export LIBGL_DRIVERS_PATH="/home/alements/pro/drivers/dri"

export dri_driver="amdgpu"

}

To my bashrc, I can open a terminal and do "progl && /opt/resolve/bin/resolve" so that the program runs with the pro-OpenGL libs and everything else runs with the normal mesa ones.

So now, only for aesthetics, I want to know if I can create a script to run this from the .desktop DaVinci file instead of having to open the terminal? can I do it?

2
Sophia Al-Mansoor

Sophia Al-Mansoor

Global Business & E-Commerce Reporter

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.

Share this article