1

I have meshlab in my Unity Launcher with the following desktop file:

[Desktop Entry]
Version=1.0
Name=MeshLab
Name[en_GB]=MeshLab
GenericName=Mesh processing
GenericName[en_GB]=Mesh processing
Comment=View and process meshes
Type=Application
Exec=meshlab
Icon=/usr/share/pixmaps/meshlab_32x32.xpm
Terminal=false
MimeType=model/mesh;application/x-3ds;image/x-3ds;model/x-ply;application/sla;model/x-quad-object;model/x-geomview-off;application/x-cyclone-ptx;application/x-vmi;application/x-bre;model/vnd.collada+xml;model/openctm;application/x-expe-binary;application/x-expe-ascii;application/x-xyz;application/x-gts;chemical/x-pdb;application/x-tri;application/x-asc;model/x3d+xml;model/x3d+vrml;model/vrml;model/u3d;model/idtf;
Categories=Graphics;3DGraphics;Viewer;Qt;

But I need to run the program with the following command so that it parses the mesh files correctly:

LC_ALL=C meshlab

The documentation says that I can't use a "=" sign in the command but it soesn't say anything on what else to do, if you need one. I tried escaping it with a backslash and putting the whole command or just the first part in double quotes but I couldn't get it to work.

Any help would be greatly appreciated.

1 Answers1

3

Change the line to

Exec=bash -c 'LC_ALL=C meshlab'

This will run the command in quotes in an own bash session, where multiple commands as well as changing environment variables is possible.

dessert
  • 40,956