Score:0

Bash Script to run Davinci with progl

ad flag

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?

terdon avatar
cn flag
Please don't post images of text. We cannot copy that to try and run it, it is harder to read, it cannot be searched and it will cause problems for users with slow connections. Instead, just copy/paste the text directly into your question and use the [formatting tools](https://askubuntu.com/help/formatting) to format it as text.
ad flag
Noted and edited.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.