Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

appimagekit-meshmixer.desktop: error: value "2.7" for key "Version" in group "Desktop Entry" is not a known version #166

Closed
hroncok opened this issue Jan 8, 2017 · 29 comments

Comments

@hroncok
Copy link
Contributor

hroncok commented Jan 8, 2017

When I launch the MeshMixer AppImage on Fedora 25, it asks me the following question:

meshmixerappimage1

But nothing happens if i click Yes. I've tried in terminal an there's an error:

/home/churchyard/.local/share/applications/appimagekit-meshmixer.desktop: error: value "2.7" for key "Version" in group "Desktop Entry" is not a known version
Error on file "/tmp/.mount_miK9kd/meshmixer.desktop": Failed to validate the created desktop file

The latest specification says:

Version of the Desktop Entry Specification that the desktop entry conforms with. Entries that confirm with this version of the specification should use 1.1. Note that the version field is not required to be present.

The entire MeshMixer/MeshMixer.AppDir/meshmixer.desktop contents form the machine I created the AppImage:

[Desktop Entry]
Version=2.7
Name=MeshMixer
Name[en_GB]=MeshMixer
GenericName=Mesh processing
GenericName[en_GB]=Mesh processing
Comment=Application for aggregating, fixing and editing meshes, and for preparing them for 3d printers.
Type=Application
Exec=meshmixer.wrapper  %F
Icon=meshmixer
Terminal=false
Categories=Graphics;
@probonopd
Copy link
Member

2.7 is not a valid entry for the Version= key at this time. This key does not hold the version of the application, but the version of the desktop specification. I will change the recipe to work around that, but a bug should be filed upstream because the desktop file is wrong.

@hroncok
Copy link
Contributor Author

hroncok commented Jan 8, 2017

I was about to check if that si already problematic in that deb package.

@probonopd
Copy link
Member

probonopd commented Jan 8, 2017

Workaround in 1cfed00, can you please test it?

@hroncok
Copy link
Contributor Author

hroncok commented Jan 8, 2017

Original content:

[Desktop Entry]
Version=2.7
Name=MeshMixer
Name[en_GB]=MeshMixer
GenericName=Mesh processing
GenericName[en_GB]=Mesh processing
Comment=Application for aggregating, fixing and editing meshes, and for preparing them for 3d printers.
Type=Application
Exec=/usr/bin/meshmixer  %F
Icon=meshmixer
Terminal=false
Categories=Graphics;

So indeed an upstream bug.

@probonopd
Copy link
Member

We could add desktop-file-validate to the Recipe so that we see these kinds of errors during AppImage creation time...

@hroncok
Copy link
Contributor Author

hroncok commented Jan 8, 2017

Also, the desktop file created in ~/.share/applications has:

Icon=appimagekit-meshmixer

But there is no such icon copied anywhere to ~/.local (no error message this time).

@hroncok
Copy link
Contributor Author

hroncok commented Jan 8, 2017

Upstream desktop file bug reported.

@probonopd
Copy link
Member

Feel free to post about this on meshmixerforum.com (saves me the time to sign up in yet another forum).

@hroncok
Copy link
Contributor Author

hroncok commented Jan 25, 2017

The desktop-file-validate on trusty is very old and thus fail in this scenario:

/meshmixer.desktop: error: value "1.1" for key "Version" in group "Desktop Entry" is not a known version

@probonopd
Copy link
Member

Since most AppImage authors want to make their AppImages compatible with older target systems (distributions) as well, I suggest to use a version of the Desktop Entry Specification that is supported by trusty (i.e., 1.0).

@kortschak
Copy link
Contributor

This appears to be broken again.

$ git rev-parse HEAD
7948b82f3bce01c9c45ff0f2687738104b8fc2b9
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.3 LTS
Release:	16.04
Codename:	xenial
$ bash -ex Recipe Meshmixer.yml
<snip>
.
.
.
<snip>
+ desktop-file-validate ./meshmixer.desktop
./meshmixer.desktop: error: file contains line "Action Bar\nThe Action Bar is not a traditional menu, it is a dynamic context-sensitive menu that responds to the current scene. For example, before you have loaded any objects into meshmixer, the Action Bar will provide you with commands such as Open, Import, etc. Once you load an object, those items will no longer be accessible from the Action Bar, you will have to use the File menu in the standard system menu. The Action Bar may change depending on the Tool you have selected. If ever you want to get back to the initial Action Bar state, just keep hitting Escape.\n\n Full manual at meshmixer.com/help", which is not a comment, a group or an entry
./meshmixer.desktop: error: value "1.1" for key "Version" in group "Desktop Entry" is not a known version
+ exit 1

The contents of meshmixer.desktop after failure:

[Desktop Entry]
Version=1.1
Name=MeshMixer
Name[en_GB]=MeshMixer
GenericName=Mesh processing
GenericName[en_GB]=Mesh processing
Comment=The ultimate tool for 3D mashups and remixes.\n\nMash, mix, sculpt, stamp or paint your own 3D designs, or start from over 10,000 models in the Gallery. Now includes direct 3D print support.\n\nMesh & Mix\nDesign your own creations by combining two or more models with a few simple steps. It’s as easy as “cut-and-paste”.\n\nPattern\nCreate beautiful overlay textures using a variety of simple grid and pattern options.\n\nSculpt\nMold and refine surfaces real-time like virtual clay.\n\n3D printing with Meshmixer\nSeamless digital-to-physical experience\nStarting from any 123D software, 3D model in the Gallery, or any major 3D model file format†, you can preview, refine and prepare your models to print with confidence.\n .stl, .obj, .amf, .ply, .wrl\n\nSupports any desktop 3D printer\nPrint directly from Meshmixer to your MakerBot or Type A Machines. Meshmixer is also compatible with Stratasys, and has the option to configure your own desktop printer.Hassle-free 3D printing services\n\nYou don’t need to own a 3D printer to create amazing 3D-printed objects. Leave the 3D printing to Autodesk's trusted partners: i.materialise, Sculpteo and Shapeways. Pick from dozens of different materials, colors and finishes, and preview your shopping cart right in Meshmixer\n\nA key concept to understand in meshmixer is the
Action Bar\nThe Action Bar is not a traditional menu, it is a dynamic context-sensitive menu that responds to the current scene. For example, before you have loaded any objects into meshmixer, the Action Bar will provide you with commands such as Open, Import, etc. Once you load an object, those items will no longer be accessible from the Action Bar, you will have to use the File menu in the standard system menu. The Action Bar may change depending on the Tool you have selected. If ever you want to get back to the initial Action Bar state, just keep hitting Escape.\n\n Full manual at meshmixer.com/help
Type=Application
Exec=meshmixer  %F
Icon=meshmixer
Terminal=false
Categories=Graphics;

@probonopd
Copy link
Member

probonopd commented Nov 12, 2017

I don't think the desktop file was ever fixed...

@kortschak
Copy link
Contributor

Oh, OK. Is there a work-around?

@kortschak
Copy link
Contributor

There appears to be two problems:

  1. The Comment value is actually broken, with a line break in the string.
  2. desktop-file-validate is broken in the Version check, incorrectly rejecting "1.1".

A work around is to add a hook into Recipe which swaps in a fixed desktop file with no Version and the broken line manually fixed.

@probonopd
Copy link
Member

We are running Ubuntu 14.04 which comes with a version of desktop-file-validate that only accepts 1.0. This is intentional to ensure that the generated AppImage will run on the oldest still-supported LTS releases, too. I will try a workaround in the yml file.

probonopd added a commit that referenced this issue Nov 13, 2017
@probonopd
Copy link
Member

...and please ask the original authors of this software to provide an official AppImage for Linux, thanks.

@kortschak
Copy link
Contributor

kortschak commented Nov 13, 2017 via email

@probonopd
Copy link
Member

The original authors have completely dropped support for Linux

Is there an official statement to this regard somewhere?

@probonopd
Copy link
Member

However there is also a mis-formatting of the Comment value.

I was hoping this would fix it, doesn't it do that?

c1c95a1#diff-97996981a42a86d4c2d2cb2be69f6f14R32

@kortschak
Copy link
Contributor

kortschak commented Nov 13, 2017 via email

@hroncok
Copy link
Contributor Author

hroncok commented Nov 13, 2017

I have extracted that, but I'm not sure what (if anything) I should do about getting that file hosted.

I'm afraid legally you cannot do much.

@kortschak
Copy link
Contributor

Yes, that was my feeling. I might write up something to automate extraction, but it's a big heft pulling a docker image to just pull 37MB of a deb.

@probonopd
Copy link
Member

probonopd commented Nov 13, 2017

Check this out: https://twitter.com/meshmixer/status/891088707662614528

mesh

I didn't feel like following up and chasing Autodesk since I don't like their subscription licensing models, but if you can follow up with them I'm sure happy to help making an AppImage (they are already using one of my tools, linuxdeployqt, for Eagle).

@kortschak
Copy link
Contributor

That is unfortunate, but seems only (from that article) to be related to eagle and meshmixer is still marked prominently as free (kostenlos).

I'm happy to take up contacting them as a neophyte to AppImage, but it it might be more effective with someone with more experience/clout with AppImage (corpthink).

@probonopd
Copy link
Member

As said, I am really happy to help if they are interested. But I don't have the time "chasing" them.

@kortschak
Copy link
Contributor

I'll email them to follow up and see what they plan to do; I have annual leave coming up, so I do have some time to chase things.

@probonopd
Copy link
Member

probonopd commented Nov 13, 2017

Maybe it helps to mention that AppImage is apparently rather popular in the 3D printing world, with Ultimaker Cura, Slic3r, Slic3r PE, PrusaControl, FreeCAD, OpenSCAD all providing official AppImages...

@kortschak
Copy link
Contributor

I have had a couple of back and forth emails with meshmixer, and they are not in the slightest interested in doing this. Pity they could be honest at the time.

@kortschak
Copy link
Contributor

A minor followup here. I found that the wayback machine has kept a download of the last available linux version, 2.9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants