Issues with starting Cryptomater on startup on Ubuntu

Hi, I have been using Cryptomator with OneDrive on Windows and Android happily for more than a year now. I have now done the same setup (Cryptomator & OneDrive) on a machine running Ubuntu. Good news is that is is basically running well, the only issue I am struggling with is that starting Cryptomator automatically on startup of the machine does not work. I have installed Cryptomator from a .deb-file (which, according to my understanding is a prerequisite for automatically starting it in the background) and the respective check box in the settings is also checked. Nevertheless, I need to manually start Cryptomator and manually unlock it (without the need for entering a password) on each start of the machine to get it working. In contrast, OneDrive is automatically started on each start of the machine. Besides, a new “Cryptomator” entry is created in the file manager every time I do this (leaving me with four or five “Cryptomator”-entries after some time. Does anyone have an idea how to solve this issue? Thanks a lot in advance!

Hi,

On Ubuntu what are you using to connect a folder or mount a folder to Microsoft OneDrive?

If you want Cryptomator to start up automatically without errors, you’ll want to have OneDrive connected automatically prior to running Cryptomator.

I don’t know how you would guarantee that OneDrive is mounted prior to Cryptomator running automatically.

Is your OneDrive synchronizing somehow to your local computer?

I mount OneDrive also only I do not synchronize I keep the Vault on the server.

Hi Leo, thanks a lot for your feedback. I am using abraunegg’s onedrive with the data being synced with my local computer. The question regarding the timing of ondrive and Cryptomator is a good one. The plan is to make Cryptomator start and unlock automatically and then address possible timing issue (if there should be any).

From Perplexity AI: Some adjustments might be required to the instructions but apparently you can in Linux add a delay so that one application starts up before another.

You might want to check out some of these options.

Is it possible to choose the order in which programs start so you can have one particular program launch and run before another

Yes, it is possible to choose the order in which programs start in Linux.

  1. Using systemd: Create service files for each program and set dependencies using After= and Before= directives in the service files. This ensures one program starts before another.

  2. Using init scripts: Rename symbolic links in the /etc/rc.d directories to control the order of execution based on their numerical prefixes (e.g., S10program1 will run before S20program2) [1].

  3. Using Startup Applications: For desktop environments, you can add a delay to startup commands by using sleep before the command in the Startup Applications settings [4][5].

Citations:
[1] How to Change the Start Order of Processes in Linux How to Change the Start Order of Processes in Linux
[2] How to Manage Startup Programs on Ubuntu Linux | Shells official site Shells
[3] Linux : what is the order of execution of *.desktop files in autostartup Linux : what is the order of execution of *.desktop files in autostartup - Stack Overflow
[4] Complete Guide for Managing Startup Applications in Ubuntu Linux Complete Guide for Managing Startup Applications in Ubuntu
[5] Startup Applications - Ubuntu Documentation Startup Applications

Thanks a lot, looks promising, but I think I will need some time to digest this :grinning:. Nevertheless: I am still stuck with the initial task of getting Cryptomator to load automatically on startup. My understanding is that it should load on startup if the respective box is checked in the application setting. It is, but it does not load automatically but needs to be started manually after starting the machine. Is my understanding correct or is any additional setup on operating system level needed?

Hi,

Sorry for the absence for a few days.

On Windows Cryptomator can be set to start automatically when you log into windows.

As far as I know, there is no checkbox like that in the Linux client which is an app image.

I’m running Debian mint Linux and it has a startup application and you can add kryptameter as I did to the startup group and when you log in it automatically starts.

So, you will be required to use one of the options listed above to have the operating system start Cryptomator when you log in.

I now tried once again from scratch and it just worked. First I selected “start Cryptomator on system Startup” in the application settings (but am pretty sure that I did not have this option when I tried last weekend - did this come with a recent update?). Next, I chose to automatically unlock the vault in the vault settings. And strangely enough, I do not have any issues releated to the startup sequence although it at least looks like Cryptomator ist started before the OneDrive client is loaded.

Regarding the issue that Cryptomator is creating a new bookmark in Files on each startup I switched off the respective option in Cryptomator and added the bookmark manually which seems to work fine.

1 Like