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.
LC_ALL=C; meshlab;
. – usmanayubsh Sep 13 '17 at 15:15C meshlab
" is one value being passed to a variableLC_ALL
and that's why exactly he/she also tried double-quotes (and escape sequence). – usmanayubsh Sep 13 '17 at 15:22meshlab
executed with a changed environment variable. You're right about that OP could have tried quoting and escaping the wrong way. We'll never know… – dessert Sep 13 '17 at 15:30LC_ALL=C meshlab
is not one assignment statement. – usmanayubsh Sep 13 '17 at 15:44LC_ALL=C; meshlab;
shouldn't be used. It doesn't actually work, unless by coincidenceLC_ALL
was exported. IfLC_ALL
is in the caller's environment orexport LC_ALL
was used,bash
passes it into the environment ofmeshlab
. If not,LC_ALL=C
as a separate command only sets a shell variable and won't affect any subsequent commands' environments. In contrast,LC_ALL=C meshlab
works whether or notLC_ALL
was exported and affects just the one command. There's no need to set if for multiple commands here but one correct way isexport LC_ALL=C;
then the commands. – Eliah Kagan Sep 15 '17 at 02:01