TheAssassin / AppImageLauncher

Helper application for Linux distributions serving as a kind of "entry point" for running and integrating AppImages
https://assassinate-you.net/tags/appimagelauncher/
MIT License
5.48k stars 263 forks source link

Appimagelauncher has conflicts with freecad.appimage #82

Closed Lvaskz closed 5 years ago

Lvaskz commented 6 years ago

I'm having this problem. I have freecad integrated in the desktop by appimagelauncher, but after I run it from the freecad application menu it gives me this error: freecad If I run freecad.appimage from the applications folder, it does not generate any conflict. link for appimage freecad: https://github.com/FreeCAD/FreeCAD/releases/download/0.17/FreeCAD-0.17.13541.9948ee4.glibc2.17-x86_64.AppImage Here a video:

freecad.zip

TheAssassin commented 6 years ago

TL;DR: That's a bug in the desktop file they ship, IIRC.

In both cases, invocation via launcher and terminal, AppImageLauncher is invoked. The difference is that in the desktop file that makes up the launcher entry, there's additional arguments which you don't pass when calling it manually.

I've had the same problem a while back, and I just edited the desktop file in the AppImage. Of course, that's not really viable for users. I will look into it to it again to see if there's anything we can do to fix this (although I doubt that). In the meantime, please try their relatively stable prerelease, and check whether it launches from the launcher properly. I use that all the time, and it works great.

TheAssassin commented 6 years ago

With the latest version of AppImageLauncher, the AppImage seems to run fine.

Please provide the output of cat ~/.local/share/applications/appimagekit*-freecad.desktop.

TheAssassin commented 6 years ago

Possibly duplicate of #79.

TheAssassin commented 6 years ago

@Lvaskz I need you to check again whether latest version of AppImageLauncher fixes the bug.

Also, in the future, please provide the version of AppImageLauncher right away, that'd be very helpful:

$ AppImageLauncher --version
Lvaskz commented 6 years ago

Hi, I just installed appimagelauncher appimagelauncher_1-alpha-travis305.git20180914.64e1fd6.bionic_amd64.deb, but the issue still persists in freecad version 0.17. With the freecad conda version, it seems to work fine, but freecad conda has a problem that does not allow me to see the menus. This is output file: [Desktop Entry] Version=1.0 Name=FreeCAD (13528.glibc2.17) Comment=Feature based Parametric Modeler Comment[de_DE]=Feature-basierter parametrischer Modellierer Comment[fr]=Modeleur paramétrique à base de fonctions GenericName=CAD Application GenericName[de_DE]=CAD-Anwendung GenericName[fr]=Application de CAO Exec=/home/amiel/Applications/FreeCAD-13528.glibc2.17-x86_64(1)_fb973c218aa319d875fa0f76e1e863be.AppImage --single-instance %U Terminal=false Type=Application Icon=appimagekit_5c061ddc94fa95da6fab516d3023ffd6_freecad Categories=Graphics;Science;Engineering; StartupNotify=true MimeType=application/x-extension-fcstd; X-AppImage-Version=13528.glibc2.17 TryExec=/home/amiel/Applications/FreeCAD-13528.glibc2.17-x86_64(1)_fb973c218aa319d875fa0f76e1e863be.AppImage X-AppImage-Old-Icon=freecad X-AppImage-Old-Name=FreeCAD X-AppImage-Identifier=5c061ddc94fa95da6fab516d3023ffd6 Actions=Remove;Update; X-AppImageLauncher-Version=1-alpha (git commit 64e1fd6), built on 2018-09-14 02:30:55 UTC

[Desktop Action Remove] Name=Remove AppImage from system Exec=/usr/lib/appimagelauncher/remove /home/amiel/Applications/FreeCAD-13528.glibc2.17-x86_64(1)_fb973c218aa319d875fa0f76e1e863be.AppImage Name[de]=AppImage vom System entfernen Name[en]=Remove AppImage from system Name[es]=Eliminar Appimage del Sistema Name[fr]=Supprimer l'AppImage du système Name[ru]=Удалить AppImage из системы

[Desktop Action Update] Name=Update AppImage Exec=/usr/lib/appimagelauncher/update /home/amiel/Applications/FreeCAD-13528.glibc2.17-x86_64(1)_fb973c218aa319d875fa0f76e1e863be.AppImage Name[de]=AppImage aktualisieren Name[en]=Update AppImage Name[es]=Actualizar Appimage Name[fr]=Mettre à jour l'AppImage Name[ru]=Обновить AppImage

Lvaskz commented 6 years ago

This is output file with freecad conda: [Desktop Entry] Version=1.0 Name=FreeCAD Conda Exec=/home/amiel/Applications/FreeCAD_0.18_Conda_Py3Qt5_glibc2.12-x86_64_58260cbce782b3b88e7308c5234b895b.AppImage Icon=appimagekit_3aadb5e8e7478d5f17ad042b8313d63e_freecad_conda Type=Application Categories=Engineering; Comment=Feature based Parametric Modeler Terminal=false StartupNotify=true NoDisplay=false MimeType=application/x-extension-fcstd; TryExec=/home/amiel/Applications/FreeCAD_0.18_Conda_Py3Qt5_glibc2.12-x86_64_58260cbce782b3b88e7308c5234b895b.AppImage X-AppImage-Old-Icon=freecad_conda X-AppImage-Identifier=3aadb5e8e7478d5f17ad042b8313d63e Actions=Remove;Update; X-AppImageLauncher-Version=1-alpha (git commit adec9be), built on 2018-09-06 11:18:52 UTC

[Desktop Action Remove] Name=Remove AppImage from system Exec=/usr/lib/appimagelauncher/remove /home/amiel/Applications/FreeCAD_0.18_Conda_Py3Qt5_glibc2.12-x86_64_58260cbce782b3b88e7308c5234b895b.AppImage Name[de]=AppImage vom System entfernen Name[en]=Remove AppImage from system Name[es]=Eliminar Appimage del Sistema Name[fr]=Supprimer l'AppImage du système Name[ru]=Удалить AppImage из системы

[Desktop Action Update] Name=Update AppImage Exec=/usr/lib/appimagelauncher/update /home/amiel/Applications/FreeCAD_0.18_Conda_Py3Qt5_glibc2.12-x86_64_58260cbce782b3b88e7308c5234b895b.AppImage Name[de]=AppImage aktualisieren Name[en]=Update AppImage Name[es]=Actualizar Appimage Name[fr]=Mettre à jour l'AppImage Name[ru]=Обновить AppImage

Lvaskz commented 6 years ago

I noted a difference in the exec line, in conda has not indicate "single ui"

Lvaskz commented 6 years ago

any progress?

TheAssassin commented 6 years ago

@Lvaskz nope. I cannot reproduce this issue. It works fine in a clean environment. Have you tried it in a live VM, as I asked you to do in the other bugs you reported? That's the only way to make sure the issue is not limited to your device.

The difference in the Exec lines does make a difference, yes. Before #79 the additional parameter wasn't properly forwarded to the AppImage. Before, the same FreeCAD AppImage failed on my computer. After merging, it works like a charm.

Lvaskz commented 6 years ago

Hi, I made a VM with linuxmit 19 and the issue remains. It is not only in my machine, Can some one try it?

Lvaskz commented 6 years ago

ksnip_20180920-163609

ghost commented 6 years ago

I get exactly the same error. Fresh install of Kubuntu 18.04, and FreeCAD development release. FreeCAD loads just fine if I double-click the image, just as reported by @Lvaskz above.

I'm using this FreeCAD image: https://github.com/FreeCAD/FreeCAD/releases/download/0.18_pre/FreeCAD_0.18.14796.glibc2.17-x86_64.AppImage

I'll edit this comment with the AppImageLauncher version once I figure out how to find it. I just found, and installed, appimagelauncher today though, so it should be the latest... I installed via apt-get after adding the repo per official instructions.

--update-- found this in syslog. Don't know if it helps or not; if you want actual appimagelauncher logs, could you kindly point me to their location? I see nothing in /var/log...

Sep 28 14:08:27 T3500 org.kde.ActivityManager[1016]: Creating the cache for:  "applications:appimagekit_d720712935d911369c9be1773301a776-freecad-daily.desktop"
Sep 28 14:08:27 T3500 org.kde.ActivityManager[1016]: Already in database?  true
Sep 28 14:08:27 T3500 org.kde.ActivityManager[1016]:       First update :  QDateTime(2018-09-28 14:07:56.000 EDT Qt::TimeSpec(LocalTime))
Sep 28 14:08:27 T3500 org.kde.ActivityManager[1016]:        Last update :  QDateTime(2018-09-28 14:07:56.000 EDT Qt::TimeSpec(LocalTime))
Sep 28 14:08:27 T3500 org.kde.ActivityManager[1016]: After the adjustment
Sep 28 14:08:27 T3500 org.kde.ActivityManager[1016]:      Current score :  0
Sep 28 14:08:27 T3500 org.kde.ActivityManager[1016]:       First update :  QDateTime(2018-09-28 14:07:56.000 EDT Qt::TimeSpec(LocalTime))
Sep 28 14:08:27 T3500 org.kde.ActivityManager[1016]:        Last update :  QDateTime(2018-09-28 14:07:56.000 EDT Qt::TimeSpec(LocalTime))
Sep 28 14:08:27 T3500 org.kde.ActivityManager[1016]: Interval length is  0
Sep 28 14:08:27 T3500 org.kde.ActivityManager[1016]:          New score :  1
Sep 28 14:08:27 T3500 org.kde.ActivityManager[1016]: ResourceScoreUpdated: "0500100a-d1f1-4b21-ad0e-3ce561ceb1fa" "org.kde.krunner" "applications:appimagekit_d720712935d911369c9be1773301a776-freecad-daily.desktop"
Sep 28 14:08:39 T3500 org.kde.ActivityManager[1016]: Creating the cache for:  "/home/joel"

screenshot_20180928_141738

TheAssassin commented 5 years ago

Is this still an issue with 1.0.0 beta 3?

Lvaskz commented 5 years ago

I will try.

Lvaskz commented 5 years ago

Yes the issue remains

TheAssassin commented 5 years ago

All I can tell is I can't reproduce this behavior with this file and the latest version of AppImageLauncher in a fresh Kubuntu 18.04 VM.

You as a long-time user might have some broken files on your system which prevent this from working. I'd like to invite you to #appimage on Freenode and try to fix this issue on your specific system.

Lvaskz commented 5 years ago

Sure. By the way, when I reported this issue I was in ubuntu 18.04, later I made a VM in Linuxmint 19. And later I decided not using ubuntu 18.04 because it was to much heavy to my light computer, so I changes it to linuxmint 19 in november month around. I think broken files in my system is not the case, but any way I will try #appimage on freenode. Only I asking you is what is that and where find it? Can you send me a link?

TheAssassin commented 5 years ago

It's an IRC channel.

Lvaskz commented 5 years ago

I used liveusb kde neon and same problem. I will try webchat to see if there is a solution. I'll take some time untill read guidelines.

Lvaskz commented 5 years ago

With Freecad 0.18 works well. Closing......