Hello guys,
I’ve switched over from KDE to a fresh Manjaro Gnome installation a couple of weeks ago and love it so far. It really suits my workflow since I’m often working from a laptop on the go.
Anyhow, there is one thing I was not able to change: The file association of .vsz files generated by Veusz. It’s a plotting tool written in python which saves its work state basically as a python script in a plain text file.
Example of a .vsz file
# Veusz saved document (version 3.6.2)
# Saved at 2024-04-07T11:20:24.564120
SetCompatLevel(1)
AddImportPath('/home/fabian/Desktop')
Add('page', name='page1', autoadd=False)
To('page1')
Add('graph', name='graph1', autoadd=False)
To('graph1')
Add('axis', name='x', autoadd=False)
Add('axis', name='y', autoadd=False)
To('y')
Set('direction', 'vertical')
To('..')
To('..')
To('..')
The installation creates a .desktop
file with a MimeType application/x-veusz
:
Summary
[Desktop Entry]
Name=Veusz
GenericName=Scientific plotting
GenericName[ca]=Traçador científic
GenericName[de]=Wissenschaftliches Plotten
...
GenericName[zh_CN]=科学绘图
Comment=Scientific plotting and graphing package
Comment[ca]=Paquet de traçament i grafisme científic
Comment[de]=Wissenschaftliches Plott- und Darstellungspaket
...
Comment[sv]=Vetenskapligt plottnings- och grafritningspaket
MimeType=application/x-veusz;
Exec=veusz %F
Icon=veusz
Terminal=false
Type=Application
Categories=DataVisualization;Science;
Keywords=graphing;plotting;graph;plot;visualization;visualisation;science;math;maths;mathematics;data;
I’ve already tried xdg-mime default veusz.desktop application/x-veusz
which probably created
application/x-veusz=veusz.desktop
in my user specific ~/.config/mimeapps.list
.
Unfortunately file --mime-type test.vsz
still returns
test.vsz: text/plain
so it is still recognized as a standard text file and opened in the default gedit.
Does anybody has an idea how I change the mimetype to application/x-veusz
? If necessary, at least manually for each .vsz file I create?
I’ve found xdg-mime set filetype test.vsz application/x-veusz
but that apparently did not change anything.
Many thanks in advance!