How can I create a launcher for an AppImage with a changing version number?

0
4
Asked By QuietPineapple93 On

I'm looking to make a launcher for my AppImage, which is located in the Applications folder. The catch is that the program updates frequently, changing the file name to something like cursor-v14748.AppImage each time. I want to avoid launching it manually every time. Is there a way to create a launcher that recognizes files like cursor*.AppImage?

3 Answers

Answered By ShellScriptMaster On

Creating a launcher with a wildcard in a simple script is super easy. Just place your script in /usr/bin and make it executable, then call it from your cursor.desktop launcher. For example: #!/bin/bash exec "$HOME/Applications/cursor*" & exit 0. This will handle launching it for you.

Answered By TechWhiz42 On

You might want to check out Gear Lever. It can help manage this kind of situation. If that doesn't work for you, consider scripting something in bash. Remember, .desktop files are just plain text, so you could write a script that re-launches the AppImage whenever it changes. If you set up systemd to monitor your Applications folder, it could trigger your script on changes.

Answered By AppGuru877 On

There are a few AppImage manager tools that automate launching AppImages. I haven't checked them recently, but sites like It's FOSS list some tools you could explore. Worst case, you could create a shell script that renames the file to remove the version number and then copies the executable to your Applications directory. Alternatively, making a symbolic link to the non-versioned name could also work.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.