Adding BricsCAD icon to rofi on linux

mfkazan
edited August 8 in Linux

BricsCAD library errors

BricsCAD-V24.2.06-1-en_US-amd64/bricscad: cannot execute: Permission denied

/home/user/Downloads/bricscad: error while loading shared libraries: libcommands.so: cannot open shared object file: No such file or directory

kind of errors invoking from absolute/relative paths errors, bu it is works as a charm from directory.

How can I invoke such outside from outside of directory it?

it seems permission error but already given all permissions with chown 777 bricscad bricscad.sh

ls -la bricscad*
-rwxrwxrwx 1 axe axe 1485856 Jun  3 16:08 bricscad
-rw-r--r-- 1 axe axe   61880 Aug  8 12:03 bricscad.png
-rwxrwxrwx 1 axe axe     138 Jun  3 16:08 bricscad.sh

https://stackoverflow.com/questions/480764/linux-error-while-loading-shared-libraries-cannot-open-shared-object-file-no-s

Its a shared library error

It seems easy but takes time. First you can download an icon and add somewhere on the bricscad folder and then called it as follows
~/Downloads/BricsCAD-V24.2.06-1-en_US-amd64/bricscad.png
I couldn't found any icon file for under BricsCAD_linux_custom_zip file folder yet. It doesn't matter!
It should be changed your user name with your_user_name
Arranging .desktop file
[Desktop Entry]
Name=BricsCAD
Comment=Run BricsCAD with custom environment variables
Exec=sh -c 'export LD_LIBRARY_PATH=/home/your_user_name/Downloads/BricsCAD-V24.2.06-1-en_US-amd64/:$LD_LIBRARY_PATH; /home/axe/Downloads/BricsCAD-V24.2.06-1-en_US-amd64/bricscad.sh'
Icon=/home/your_user_name/Downloads/BricsCAD-V24.2.06-1-en_US-amd64/bricscad.png
Terminal=false
Type=Application
Categories=Graphics;3DGraphics;`
so you can add this desktop file to under following directory. so you can add this desktop file to under following directory. 
/home/your_user_name/.local/share/applications/bricscad.desktop
you can start it.