AppImageLauncher icon indicating copy to clipboard operation
AppImageLauncher copied to clipboard

Add option to suppress integration dialog permanently for AppImages

Open jtsagata opened this issue 4 years ago • 19 comments

Add an option "Never integrate" besides "Run" and "Run and integrade".

This will solve some issues with Apps like JetBrainsToolbox, or PureRef. The latest came also as a deb file, but the deb contains just an AppImage. So moving is impossible.

An easy option to remove an item from the blacklist will be also nice to have.

jtsagata avatar Jun 04 '20 08:06 jtsagata

Same problem with some applications which are shipped as app images on steam. Right now I always have to click "Run once" each time I start them.

DASPRiD avatar Jun 24 '20 17:06 DASPRiD

@DASPRiD AppImages shipped on Steam should probably just declare that they don't want to be integrated. Please tell them to add X-AppImage-Integrate=false to their desktop file.

Just out of curiosity, who's shipping AppImages on Steam?

TheAssassin avatar Jun 24 '20 18:06 TheAssassin

@TheAssassin That'd be OpenVR-Advancd-Settings. I gonna make a pull requests against them :)

DASPRiD avatar Jun 25 '20 10:06 DASPRiD

@TheAssassin I'm a dev from OpenVR-AdvancedSetting. We're shipping AppImages because the Steam Runtime are shipping hilariously out of date packages, that simply won't compile our application without massive changes anyway. Long term, the solution would probably to statically link as much as possible but that requires a massive amount of work and time, so we're doing AppImages for now.

We got the idea from Krita (https://github.com/ValveSoftware/steam-runtime/issues/189) who are doing the same thing. I don't know if Krita are still shipping AppImages on Steam, but it seems to work for us.

As an aside, we're currently launching the AppImage from a helper script, is there any way of disabling AppImageLauncher support with a launch parameter?

username223 avatar Jun 26 '20 09:06 username223

Also, wine-launcher doesn't launch, because of AppImageLauncher.

Ahmed-E-86 avatar Jul 25 '20 21:07 Ahmed-E-86

@DASPRiD AppImages shipped on Steam should probably just declare that they don't want to be integrated. Please tell them to add X-AppImage-Integrate=false to their desktop file.

Just out of curiosity, who's shipping AppImages on Steam?

@TheAssassin I have this issue with jetbrains toolbox, it always prompt me to integrate the AppImage but the app doesn't need it since it does it own thingand is already integrated. I added X-AppImage-Integrate=false to the .desktop file but it still opens AppImageLauncher everytime. I want to give you my AppImageLauncher version but I don't know how to get it. The settings doesn't show it and neither appimagelauncherd --version, appimagelauncherd -v, appimagelauncherd version, appimagelauncherd --help, appimagelauncherd -h works...

theblackhole avatar Nov 18 '20 14:11 theblackhole

@TheAssassin I have this issue with jetbrains toolbox, it always prompt me to integrate the AppImage but the app doesn't need it since it does it own thingand is already integrated. I added X-AppImage-Integrate=false to the .desktop file but it still opens AppImageLauncher everytime.

The author of the AppImage must add it to the desktop file inside the AppImage. Changes to the integrated one will be overwritten.

I want to give you my AppImageLauncher version but I don't know how to get it. The settings doesn't show it and neither appimagelauncherd --version, appimagelauncherd -v, appimagelauncherd version, appimagelauncherd --help, appimagelauncherd -h works...

> AppImageLauncher --appimagelauncher-version

TheAssassin avatar Nov 18 '20 14:11 TheAssassin

The author of the AppImage must add it to the desktop file inside the AppImage. Changes to the integrated one will be overwritten.

Oh I see, thanks! Is there a way to do it myself? Because I use it everyday (it autostarts) so it's quite annoying (I don't want to disable AppImageLauncher completely but I might have to because of this)

AppImageLauncher --appimagelauncher-version

I would have never thought of this, maybe consider adding a more standard --version option in the future ? (+ mention in the docs, to help you with issue reports and help us tracking the version ?)

theblackhole avatar Nov 18 '20 15:11 theblackhole

I would have never thought of this, maybe consider adding a more standard --version option in the future ? (+ mention in the docs, to help you with issue reports and help us tracking the version ?)

Long overdue, please file a new issue.

Is there a way to do it myself?

First, extract the AppImage's contents. You'll find the AppDir in squashfs-root. Then, patch the desktop file in the AppDir root, as well as in squashfs-root/usr/share/applications/.

Then, repack with appimagetool:

> wget .../appimagetool-<arch>.AppImage
> chmod +x appimagetool*.AppImage
> ./appimagetool-<arch>.AppImage squashfs-root/

TheAssassin avatar Nov 18 '20 17:11 TheAssassin

First, extract the AppImage's contents. You'll find the AppDir in squashfs-root. Then, patch the desktop file in the AppDir root, > as well as in squashfs-root/usr/share/applications/.

Then, repack with appimagetool:

wget .../appimagetool-.AppImage chmod +x appimagetool*.AppImage ./appimagetool-.AppImage squashfs-root/

Thank you very much, I will try that

theblackhole avatar Nov 18 '20 20:11 theblackhole

Have reported this to JetBrains: Request #2992754.

But would still be great to be able to add exceptions to the config file. Even without UI option, but just documented.

UPDATE: The issue is tracked on their Bug Tracker as TBX-3948 - Failed to register AppImage in system via libappimage

martin-rueegg avatar Nov 27 '20 15:11 martin-rueegg

It would be nice if we could give AppImageLauncher a list of app images to ignore -- because going to each AppImage and re-packing (when jetbrains, e.g. will update itself) isn't really workable (same as above comment, essentially) ..

ebullient avatar Dec 03 '20 02:12 ebullient

Yes a blacklist would be good way to deal with some of those stubborn appimages. https://github.com/TheAssassin/AppImageLauncher/issues/239#issuecomment-612572173

smac89 avatar Dec 07 '20 16:12 smac89

Solution that worked for me for JetBrains toolbox on Login:

  1. Edit .desktop file used for AutoStart (I use vi but nano etc works) vi ~/.config/autostart/jetbrains-toolbox.desktop
  2. Change Exec line to set env From: Exec=/home/<user>/.local/share/JetBrains/Toolbox/bin/jetbrains-toolbox --minimize To: Exec=env APPIMAGELAUNCHER_DISABLE=TRUE /home/<user>/.local/share/JetBrains/Toolbox/bin/jetbrains-toolbox --minimize

(Remember to change <user> to match your own) 3) Remove write privileges. This may not be necessary but mine seemed to revert back after a reboot otherwise chmod -w ~/.config/autostart/jetbrains-toolbox.desktop

  1. (optional) do the same thing for the applications .desktop file. vi ~/.local/share/applications/jetbrains-toolbox.desktop

darkporpoise avatar Dec 21 '20 17:12 darkporpoise

These paths look quite constant... I am tempted to implement a specific exception...

TheAssassin avatar Dec 21 '20 18:12 TheAssassin

It's apparently fixed in the next release of JetBrains Toolbox (1.20). I think by fixed they mean X-AppImage-Integrate=false but it's a little unclear from the comments. I also think they are planning to make it so that the Toolbox can be run from arbitrary locations which would mean it could be integrated by AppImageLauncher.

https://youtrack.jetbrains.com/issue/TBX-3948

darkporpoise avatar Dec 22 '20 11:12 darkporpoise

Solution that worked for me for JetBrains toolbox on Login:

  1. Edit .desktop file used for AutoStart (I use vi but nano etc works) vi ~/.config/autostart/jetbrains-toolbox.desktop
  2. Change Exec line to set env From: Exec=/home/<user>/.local/share/JetBrains/Toolbox/bin/jetbrains-toolbox --minimize To: Exec=env APPIMAGELAUNCHER_DISABLE=TRUE /home/<user>/.local/share/JetBrains/Toolbox/bin/jetbrains-toolbox --minimize

Thank you! Used this solution for Joplin and works splendidly. Needed it due to a weird way how Joplin manages updates and hence giving duplicate desktop entries.

Syzygianinfern0 avatar Jan 11 '21 12:01 Syzygianinfern0

Any news on this?

maverick74 avatar Jan 07 '22 15:01 maverick74

It looks like the Joplin side of things moved on without adding an AppImageLauncher suppression option, so could this be picked back up again? It's still a bit of a hassle to always have to click "Run Once" whenver I want to take class notes...

MMachado05 avatar Oct 16 '23 14:10 MMachado05