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

Linux specific forum
Martin Verlaan
Enthusiast
Enthusiast
Posts: 126
Joined: Sun Apr 01, 2018 11:26 am

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

Post 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.
Martin Verlaan
Enthusiast
Enthusiast
Posts: 126
Joined: Sun Apr 01, 2018 11:26 am

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

Post 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
Martin Verlaan
Enthusiast
Enthusiast
Posts: 126
Joined: Sun Apr 01, 2018 11:26 am

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

Post 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.
Post Reply