1. When performing the updates as detailed in the INSTALL file, errors like "no installation candidate" might occur. Always best to run a general update first (apt update) before performing the other updates.
2. In the application desktop file (PureBasic.desktop):
a. Append the %F directive to the Exec key value to include the PureBasic application in the "Open with" application list.
b. Include the MimeType key value as indicated in the mime XML file (purebasic.xml), to properly configure file associations so that PureBasic will be launched when .pb/.pbi/.pbf files are selected in the file manager.
c. Include the StartupWMClass key value so that the application icon will be displayed in the task bar when launched at the command line or by clicking an associated file.. This value can be obtained by running xprop WM_CLASS in a terminal window, then clicking on the PureBasic IDE window.
Application Desktop file (saved to /home/[username]/.local/share/applications/PureBasic.desktop)
Code: Select all
[Desktop Entry]
Type=Application
Icon=/home/[username]/Apps/purebasic/logo.png
Name=PureBasic v6.12 LTS
Comment=Developer Utility
Categories=Development
MimeType=application/purebasic
Exec=/home/[username]/Apps/purebasic/compilers/purebasic %F
Path=/home/[username]/Apps/purebasic/compilers
StartupWMClass=purebasic
StartupNotify=true
Terminal=false
Mime XML file (saved to /home/[username]/.local/share/mime/packages/purebasic.xml)
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
<mime-type type="application/purebasic">
<comment>PureBasic source code</comment>
<glob pattern="*.pb"/>
<glob pattern="*.pbi"/>
<glob pattern="*.pbf"/>
</mime-type>
</mime-info>
After making these changes, update the desktop and mime databases in terminal:
Code: Select all
update-desktop-database ~/.local/share/applications
update-mime-database ~/.local/share/mime
Nevertheless, it's still unable to open a PureBasic file by double-clicking it if the IDE is already running.
