I want AppImage to start automatically

I have been able to launch .desktop applications in a specific WorkSpace, but I want to be able to automatically launch the application I am using as AppImage when I start AppVM.

Disassemble AppImage? There was also a method to register a file created by disassembling the AppImage, but is it possible to execute the AppImage itself as a file?

Create a .desktop file for AppImage:
How to add new apps in appVM? - #2 by apparatus
And then configure it to autostart:
How to install software | Qubes OS

1 Like

Thanks, I did the Extarct command in AppImage and extracted the contents.

An_app.AppImage --appimage-extract

I went into the resulting directory and found a .desktop file, which is,

~/.config/autostart/

and,

~/.local/share/application

to using the copy or ln command, but the desired AppImage did not start automatically after the restart of UntrusterdAPPVM.

-ln

or

cp

Which is more suitable for copying .desktop files?

You need to copy the .desktop file to the ~/.local/share/application in app qube by following the guide in the first link (make sure to change the Exec= path to the AppImage), then create a link to your AppImage .dektop file ~/.local/share/application/app.desktop in ~/.config/autostart/ by following the guide in the second link.

1 Like

squashfs-root

The .desktop file in this directory has been copied to ~/.local/share/application/. The AppImage has been given execute permission and the .desktop file link copied to ~/.config/autostart/ using the ln -s commandThe file has been copied to ~/.config/autostart/ with the ln -s command.

Should the squashfs-root file name not be changed? Iā€™m going to try again with the steps from the beginning to see if Iā€™ve missed something.

  1. Remove the directory squashfs-root.
1 Like

Thank you. I deleted the squashfs-root directory.For the .desktop file, I copied it to ~/.local/share/application/ and then used

ln -s

to create a ~/.config/autostart/ link, but the type is ā€˜broken linkā€™.Was the link not drawn correctly?

Whatā€™s the output of this command?

ls -l ~/.local/share/application/ ~/.config/autostart/

Post the full ln -s command that you used.

2 Likes

ln -s ~/.local/share/application/An.desktop ~/.config/autostart/An.desktop

The command ls -l may be correct.Try the -l option as well.

ln -l

If the option is not available, then it will be an invalid option.

The command looks correct.

Itā€™s ls command to list the files in directories, not ln command.

1 Like

Iā€™ve just noticed, it should be ~/.local/share/applications directory, not ~/.local/share/application directory.
Move your An.desktop file to the ~/.local/share/applications directory and create a link to it.

1 Like

I see that ln -s succeeds even without ā€œsā€."I ran it with ā€œ/applicationsā€ and it no longer results in a broken link.

However, it still does not seem to start automatically when I start untrusted.The same thing happened when I gave the .desktop file in /share/applications/ , permission to run as a program and then ln -s again.

It seems like there is one more step to go.

Are you able to start the app using Qubes Application Menu?
If you donā€™t see it available then:

Refresh the Applications list for the app qube. In the Qubes Menu for the app qube* launch the Qube Settings. Then go to the Applications tab and click ā€œRefresh Applicationsā€

1 Like

Thank you.ā€œRefresh Applicationsā€ now shows up in the Applications menu!However, restarting AppQube has not led to an automatic start.

When I click on an application in the Applications Menu, the application does not seem to start up.If I start AppImage in the folder directly, it starts up.