Prevent Picoscope7 from opening *.dat files in Ubuntu

Having problems ? let us know the details here
Post Reply
neilsyl
User
User
Posts: 2
Joined: Thu Sep 05, 2024 11:42 pm

Prevent Picoscope7 from opening *.dat files in Ubuntu

Post by neilsyl »

I use Picoscope 7 under Ubuntu 24.04 . How do I stop Picoscope from opening each time I click a file, with an extension ".dat", in the Ubuntu File Manager?
neilsyl
User
User
Posts: 2
Joined: Thu Sep 05, 2024 11:42 pm

Re: Prevent Picoscope7 from opening *.dat files in Ubuntu

Post by neilsyl »

Ok, I've answered this myself.
After I installed Ubuntu 24.04, PicoScope opened each time I clicked (mouse up) on a certain type of *.dat file (not all *.dat files). I fixed this with the following:
1. Backed up the picoscope.desktop file:
sudo cp -a /usr/share/applications/picotech-picoscope.desktop /usr/share/applications/picotech-picoscope.desktop.bak
2. Edited this file to remove “application/x-psdata;” from the MimeType variable
MimeType=application/x-psdata;application/octet-stream;x-scheme-handler/picoauto; became
MimeType=application/octet-stream;x-scheme-handler/picoauto;
sudo nano /usr/share/applications/picotech-picoscope.desktop
3. Updated the Gnome desktop database. See man sudo update-desktop-database and https://askubuntu.com/a/16583
sudo update-desktop-database
Post Reply