Running a program as root is not recommended and a safety risk. Therefore I would recommend to implement a modified approach.
What I have seen up to now is that the program wants to write in dedicated folders in the protected file area. The folders /usr/lib and subfolders shouldn't be writable for everybody, but this is wanted by the software.
I don't know why these folders were selected for dynamic data, but nowadays I would prefer a different approach.
The oszilloscope installs and uses hidden folders in the user area. Why can't the files from the protected area transferred to the hidden user area?
Another approach would be to have a separate data structue e.g. in the /srv or /opt segment.
There is another observation I cannot understand. During the Startup the software is checking for ROOT user. On the other hand, the used subfolders in the /usr/lib/ area are owen by root but usable by everybody. So from this point of view no root privileges are neccessary. Can you explain this a little bit?