marta-file-manager / marta-issues

An issue tracker for Marta File Manager.
https://marta.yanex.org/
331 stars 0 forks source link

Changing themes requires Marta restart if conf.json is symlinked #488

Open IgorKrupenja opened 5 years ago

IgorKrupenja commented 5 years ago
  1. Move conf.json from the default config folder to some other folder.
  2. Symlink conf.json back to default config folder.
  3. Open Marta: it will launch just fine with settings correctly picked up from the symlinked conf.json.
  4. Now edit conf.json and change theme.

Marta theme stays the same until you restart it. If conf.json is not symlinked, theme change is instant with no restart needed.

yanex commented 5 years ago

Since 0.6.1, the recommended way to configure Marta is to use the embedded configuration editor. It supports symbolic links and preferences re-loading, so I think this issue can be postponed. If you can't use the embedded editor for some reason, please create a separate issue.

haakonstorm commented 4 years ago

Regarding symlinked settings:

Today the two configuration files conf.marco and favorites.marco are both in ~/../org.yanex.marta/

This means that you have to choose between:

  1. two symlinks: a symlink links directly to a file, OR
  2. one symlink: symlinking the enclosing folder, creating a redirect for both files at the same tim

Only symlink folders, not directly to config files

You could try a Marta test build with a split to different folders, example:

Instead of symlinking to the file itself, symlink instead to the folder containing the config file.

Domains: Factory > Local > Cloud > User

Consider the following alternative configuration hierarchy:

Added bonus

macOS Priority macOS Domain Folder Marta config Marta priority Marta Domain
1. System /System/Library/ Marta factory configuration 4. Factory
2. Local /Library/ Marta config for all users on local mac 3. Local
N/A N/A N/A Current logged-in user config - for all accounts 2. Cloud / iCloud
3. User ~/Library/ Current logged-in user config - on this local account 1. User

Favorites.marco