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.
Can't load help file (Desktop shortcut problem) MINT 19.2
-
- Enthusiast
- Posts: 126
- Joined: Sun Apr 01, 2018 11:26 am
-
- Enthusiast
- Posts: 126
- Joined: Sun Apr 01, 2018 11:26 am
Re: Can't load help file (Desktop shortcut problem) MINT 19.
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
export PUREBASIC_HOME=~/purebasic
export PATH=$PUREBASIC_HOME/compilers:$PATH
And yes, after running these commands, the help file loads correctly
-
- Enthusiast
- Posts: 126
- Joined: Sun Apr 01, 2018 11:26 am
Re: Can't load help file (Desktop shortcut problem) MINT 19.
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.