Settings.json location with AppImage

I’m on ArchLinux. I downloaded AppImage and set it executable.

Before starting AppImage file, I created the following two directories, at the same level of AppImage file, named

  • <AppImage>.config
  • <AppImage>.home

to use them in conjunction with AppImage file, respecting AppImage documentation.

I noticed your AppImage doesn’t consider them, instead it creates its settings.json file inside ~/.config/Cryptomator folder.

This behaviour is unexpected and far from AppImage standards.

Don’t you agree?

I checked the official AppImage documentation, and it specifically addresses where configuration files should be stored.

According to the documentation:

Normally the application contained inside an AppImage will store its configuration files wherever it always stores them (most frequently somewhere inside $HOME).

In other words, AppImage does not require configuration files to be stored in the same directory as the AppImage executable.

There are two officially documented approaches.

1. Normal configuration storage (default)

Applications continue using their usual Linux locations:

| Directory | Typical contents |

| --------------- | ----------------------------- |

| ~/.config/ | Application settings |

| ~/.local/share/ | Application data |

| ~/.cache/ | Cached information |

| ~/.appname/ | Application-specific settings |

This is the default behavior whether you launch an AppImage manually or through Gear Lever.

2. AppImage portable mode (officially supported)

The AppImage documentation describes a mechanism for keeping configuration files alongside the executable.

For example:


~/Applications/

    MyApp.AppImage

    MyApp.AppImage.home/

    MyApp.AppImage.config/

The two special directories have different purposes:

  • .home redirects the application’s $HOME directory.

  • .config redirects the application’s $XDG_CONFIG_HOME directory.

These are recognized automatically by compatible AppImage runtimes. You don’t need both directories; choose based on what you want to redirect.

What does the AppImage project recommend?

The documentation treats normal application-specific configuration storage as the default and portable mode as an optional feature, particularly useful when carrying applications between computers.

It also recommends ~/Applications/ as a good location for AppImage executables.

You can read the official documentation here:

AppImage — Using Portable Mode

My recommendation for Gear Lever: Keep using the normal Linux configuration locations unless you specifically want your AppImages to be portable. This also avoids potential problems when Gear Lever updates or renames AppImage files.

1 Like

Having config quietly land in ~/.config kind of defeats the point of carrying one file around.

I don’t use Gear Lever or other similar utilities, and manage AppImage programs by hand.

You said that Cryptomator supports “portable mode” but it seems wrong, just because - as I wrote in my first post - settings.json file is maintained inside ~/.config/Cryptomator folder, and not in a custom ~/..../Cryptomator-<version>.AppImage.config folder at the same level of AppImage file.

So, I would like to come to a conclusion: does Cryptomator support “portable mode” or not?

There is no official portable mode of Cryptomator provided by Skymatic.

See the download page:

The portable app is a community effort and not officially provided and maintained by Skymatic.

And the community driven portable app seems not maintained properly to me.

Last update was April 2025

Thanks for your reply @Michael .

I’ve searched the info about portable app unofficial support, but I wasn’t able to find it. May you please help me locating it?

Anyway, I want to clarify that - IMHO - one ot the advantages of using AppImage format in portable mode is the possibility for different versions to be present (and optionally executing at the same time) on the same system.
So I can prepare the environment for a new available version, try it and check if everything works. In case of problems, I can simply delete 1 file and two folders and go back using previous version.

If an AppImage doesn’t support portable mode, in case a new version brakes any backward compatibility, e.g. changing a file format or anything similar, it could potentially lead to an impossible return to previous version.

I dont’ want to say that Cryptomator specifically could bring to a similar situation, it’s a generic approach for AppImage format that I suggest to avoid.

On the download page when “windows” is selected.

On other OS there is no info because there is no portable solution, also no community driven one.

I hope I do not mix things up here because I am no pro when it comes to app images. If I do I apologise.

Ah! Ok. Now I understand :slight_smile:

Windows operating system doesn’t support a specific “portable” format for executables, it only supports EXE files. Depending on how developers write code, it could be possible for an EXE to be located standalone in a custom folder, with all other files needed to be executed placed in the same folder or in other pre-defined specific paths.
Portapps is a separated project, not related with Cryptomator, where contributors try to provide “portable” versions of Windows programs that weren’t originally developed to be “portable”.
It’s a project similar to the older PortableApps.com

Linux, differently from Windows, does support multiple executable format, or, to be more precise, multiple different executable packaging format (ELF, AppImage, Snap, Flatpak).

1 Like