appimages

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
appimages [21.02.2021 10:06] – [Appimaged] Pascal Suterappimages [21.02.2021 10:22] (current) – [Appimaged] Pascal Suter
Line 25: Line 25:
 what I don't like about it is, it also searches your Downloads directory, to detect an app image as soon as its downloaded. This is of course very convenient, however, it makes your system a mess! also keep in mind, that it automatically marks everything executable. I see my Downloads folder as a temporary storage for stuff I download. It is the first folder i delete when i run out of diskspace, so not really the place where i want to keep my AppImage files that i need every day. what I don't like about it is, it also searches your Downloads directory, to detect an app image as soon as its downloaded. This is of course very convenient, however, it makes your system a mess! also keep in mind, that it automatically marks everything executable. I see my Downloads folder as a temporary storage for stuff I download. It is the first folder i delete when i run out of diskspace, so not really the place where i want to keep my AppImage files that i need every day.
  
-Of course i can manually copy them to different folderbut there we warei need to open a file browser again and start to manage my appimages.+here is list of all directories that are searched for appimagesout of the source of [[https://github.com/probonopd/go-appimage/blob/master/src/appimaged/appimaged.go|appimaged.go]] 
 +<code go> 
 +var candidateDirectories = []string{ 
 + xdg.UserDirs.Download, 
 + xdg.UserDirs.Desktop, 
 + home + "/.local/bin", 
 + home + "/bin", 
 + home + "/Applications", 
 + "/opt", 
 + "/usr/local/bin", 
 +
 +</code>
  
 Sadly there is no configuration option that would allow us to change the directories in which appimages are searched, and looking at a comment from the developer to a request of a user to have a configuration option to disable the automatic creation of the Applications folder, he answered saying, that configurability adds complexity and he wants to avoid that.. a valid thaught, however, it does not help in this case. I personally believe that configurability does not need to add complexity, as long as everything runs with good default settings. but that's an opinion just like any other ;)  Sadly there is no configuration option that would allow us to change the directories in which appimages are searched, and looking at a comment from the developer to a request of a user to have a configuration option to disable the automatic creation of the Applications folder, he answered saying, that configurability adds complexity and he wants to avoid that.. a valid thaught, however, it does not help in this case. I personally believe that configurability does not need to add complexity, as long as everything runs with good default settings. but that's an opinion just like any other ;) 
Line 38: Line 49:
 then copy the appimage file to the defintive location and start it from there, it will automatically re-create the systemd entry then copy the appimage file to the defintive location and start it from there, it will automatically re-create the systemd entry
  
-=== Workaround for Download folder issue === +=== uninstallation === 
-looking at the sourcecode of [[https://github.com/probonopd/go-appimage/blob/master/src/appimaged/appimaged.go|appimaged.go]] here is the list of directories which are searched for appimages:  +unfortunately this is not documented yet on the appimaged github pagein order to remove it, you have to do three things: 
-<code go> +
-var candidateDirectories = []string{ +
- xdg.UserDirs.Download, +
- xdg.UserDirs.Desktop, +
- home + "/.local/bin", +
- home + "/bin", +
- home + "/Applications", +
- "/opt", +
- "/usr/local/bin", +
-+
-</code> +
-I agree to all of them except for the "Download" and "Desktop" which at least I personally use as more a temporary kind of storage. Luckily the path for these two folders is determined via XDG and XDG uses some environment variables to customize it. Namely ''XDG_CONFIG_DIRS'' which points to directories holding further path information. so maybe we can mess with that.. this has not worked yet..+
  
-<code> +1.) stop and disable the systemd service  
-mkdir -p ~/.config/appimaged/{Empty,xdg} +  systemctl --user --now disable appimaged.service 
-cat > ~/.config/appimaged/xdg/user-dirs.dirs <<EOF +2.) remove the service (if you want to tidy up your system again)  
-XDG_DESKTOP_DIR="\$HOME/.config/appimaged/Empty" +  rm ~/.config/systemd/user/appimaged.service 
-XDG_DOCUMENTS_DIR="\$HOME/.config/appimaged/Empty" +3.) delete the appimage of appimaged :)  
-XDG_DOWNLOAD_DIR="\$HOME/.config/appimaged/Empty" +  rm path/to/appimaged 
-XDG_MUSIC_DIR="\$HOME/.config/appimaged/Empty" +4.) remove all the entries it made in your launcher 
-XDG_PICTURES_DIR="\$HOME/.config/appimaged/Empty" +  rm ~/.local/share/applications/appimagekit_*
-XDG_PUBLICSHARE_DIR="\$HOME/.config/appimaged/Empty" +
-XDG_TEMPLATES_DIR="\$HOME/.config/appimaged/Empty" +
-XDG_VIDEOS_DIR="\$HOME/.config/appimaged/Empty" +
-EOF +
-mkdir -p ~/.config/systemd/user/appimaged.service.d +
-cat > ~/.config/systemd/user/appimaged.service.d/override.conf <<EOF +
-[Service] +
-Environment="XDG_CONFIG_DIRS=/home/psuter/.config/appimaged/xdg" +
-EOF +
-</code> +
  
 ==== AppImageLauncher ==== ==== AppImageLauncher ====
  • appimages.1613898370.txt.gz
  • Last modified: 21.02.2021 10:06
  • by Pascal Suter