It would be great of could just click on a file with the extension of .pb, .pbi, .pbf, or .pbp and have it come up the the PureBasic IDE, but I don't know how. I'be searched online, and the closest ansers I've found were:
(1) Add " %U" or " %F" to the end of the Exec= box in the desktop launcher for the PureBasic IDE (suppose to make it come up among the selectable applications that you can choose from when using the mouse right-click on a file type and selecting "Open with...") option.
(2) Make an addition to a list that is either global (effects all users) or local to just the current user.
I'm using Ubuntu 14.04, and have not rigged a desktop launcher yet, as I'm not sure how. I have a desktop link to PureBasic IDE, but adding " %U" to its Command line produced no results.
I looked at adding a new application (PureBasic) to a list somewhere. but where to add it is unclear. Different posts on the subject haven't been much help. I've encountered references to
~/.local/share/applications/mimeapps.list for the current user, bit there is also mention of /usr/share/applications/defaults.list, which is a symbolic link to /etc/gnome/defaults.list.
Here's a link:
http://askubuntu.com/questions/154906/w ... re-the-dif
Perhaps more to the point, this page tells you what you have to do to add custom file associations. Go down the page until you find the section labeled Custom file associations:
https://wiki.archlinux.org/index.php/De ... plications
If you go to the bottom of the page, you reach a section on Troubleshooting. Here is where the process of adding the " %U" to the end of the Exec= line in a desktop launcher is explained. And no, it does not appear to check links.
The google short blurb for the above link had this interesting tibit in it: "$HOME/.local/share/applications/mimeapps.list, for compatibility but now deprecated. /usr/local/share/applications/$desktop-mimeapps.list ..." I looked for this line in the page, but it was not on display, However, two other entries showed up there:
"gnome-defaults-list
gnome-defaults-listAUR is available from the AUR, and contains a list of file-types and programs specific to the GNOME desktop. The list is installed to /etc/gnome/defaults.list.
Open this file with a text editor. Here you can replace a given application with the name of the program of your choice. For example, the media-player totem can be replaced with another, such as vlc. Save the file to ~/.local/share/applications/defaults.list."
"Note:
Arch Linux itself does not provide any system-wide preferences for associations, but other distributions and specific desktop environments may do so via mimeapps.list or the older but deprecated defaults.list files."
This link gets into how the entries in mimeapps.list work:
http://askubuntu.com/questions/351123/h ... -mime-type
My point with this post is not to belabor the matter, but to reveal what I have unearthed so far, and find out if anyone else has taken the steps of creating extension associations for the PureBasic file types? A questions that comes to mind is: How is the path to the application known, so that no path need be specified? My guess is, via the desktop launcher, but that would only cover those applications that were represented by desktop icons. Most aren't.
Anyway, enough said on my part. Someone else's turn now.
Want to Link .pb* extensions to launch of PureBasic IDE
Want to Link .pb* extensions to launch of PureBasic IDE
has-been wanna-be (You may not agree with what I say, but it will make you think).
Re: Want to Link .pb* extensions to launch of PureBasic IDE
Use this script: http://www.purebasic.fr/english/viewtop ... 15&t=59400
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.


