Skip to content
Snippets Groups Projects
Commit 51e8d506 authored by Daniel Lublin's avatar Daniel Lublin
Browse files

Store the tor state subdir in app datadir

parent 0b972c14
No related branches found
No related tags found
1 merge request!65Store the tor state subdir in app datadir
Pipeline #10282 passed
...@@ -24,6 +24,7 @@ import dagger.Provides ...@@ -24,6 +24,7 @@ import dagger.Provides
import dagger.hilt.InstallIn import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent import dagger.hilt.components.SingletonComponent
import org.briarproject.mailbox.core.event.EventBus import org.briarproject.mailbox.core.event.EventBus
import org.briarproject.mailbox.core.files.FileProvider
import org.briarproject.mailbox.core.lifecycle.IoExecutor import org.briarproject.mailbox.core.lifecycle.IoExecutor
import org.briarproject.mailbox.core.lifecycle.LifecycleManager import org.briarproject.mailbox.core.lifecycle.LifecycleManager
import org.briarproject.mailbox.core.settings.SettingsManager import org.briarproject.mailbox.core.settings.SettingsManager
...@@ -66,10 +67,9 @@ internal class JavaTorModule { ...@@ -66,10 +67,9 @@ internal class JavaTorModule {
backoff: Backoff, backoff: Backoff,
lifecycleManager: LifecycleManager, lifecycleManager: LifecycleManager,
eventBus: EventBus, eventBus: EventBus,
fileProvider: FileProvider,
): TorPlugin { ): TorPlugin {
val configDir = File(System.getProperty("user.home") + File.separator + ".config") val torDir = File(fileProvider.root, "tor")
val mailboxDir = File(configDir, ".briar-mailbox")
val torDir = File(mailboxDir, "tor")
return JavaTorPlugin( return JavaTorPlugin(
ioExecutor, ioExecutor,
settingsManager, settingsManager,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment