Page 1 of 1

Can't load help file (Desktop shortcut problem) MINT 19.2

Posted: Thu Dec 05, 2019 11:01 am
by Martin Verlaan
I created a PureBasic shortcut on my Linux mint 19.2 desktop. It works fine, but if i press F1 i get this error: Cannot open the file '/home/martin/Desktop/purebasic.help'

I have the same problem if I create a shortcut from my own written PB executables. The programs are running fine, but they don't load databases and config files (from the program directory).

Does anybody know how to solve this?

BTW If I run PB or compiled programs directly from the directory (not with desktop shortcut) everything works fine.

Re: Can't load help file (Desktop shortcut problem) MINT 19.

Posted: Sun Dec 08, 2019 8:29 pm
by Martin Verlaan
Feel dumb, didn't read the install-file, which recommend the commands:
export PUREBASIC_HOME=~/purebasic
export PATH=$PUREBASIC_HOME/compilers:$PATH

And yes, after running these commands, the help file loads correctly

Re: Can't load help file (Desktop shortcut problem) MINT 19.

Posted: Sun Dec 08, 2019 9:30 pm
by Martin Verlaan
Edited my PB source files and added GetPathPart(ProgramFilename()) to get the correct application path. After recompiling my PB programs, the desktop shortcuts works fine. So everything is working correct now.