summaryrefslogtreecommitdiff
path: root/src/main.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2024-07-06 21:08:16 +0200
committerJörg Frings-Fürst <debian@jff.email>2024-07-06 21:08:16 +0200
commit80aa3fe15f6346102c29b9c4236fe1e89c283d3b (patch)
treece74f3643b6d3e03050df0940e484d12235f9949 /src/main.vala
parent79a133306dee3c727edf09655767987ec11e2c4f (diff)
parentdf7f03cb7f772b9a87896bfa189bccd4068d1963 (diff)
Merge branch 'release/debian/0.32.7-1'debian/0.32.7-1
Diffstat (limited to 'src/main.vala')
-rw-r--r--src/main.vala7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.vala b/src/main.vala
index f4eed30..25a0690 100644
--- a/src/main.vala
+++ b/src/main.vala
@@ -571,9 +571,12 @@ void main(string[] args) {
Application.init(!is_string_empty(filename));
// set custom data directory if it's been supplied
- if (CommandlineOptions.data_dir != null)
+ if (CommandlineOptions.data_dir != null) {
+ if (CommandlineOptions.profile == null) {
+ AppWindow.error_message("Using the --datadir option without passing --profile and --create is deprecated\n. Plesae migrate to a proper profile instead.");
+ }
AppDirs.set_data_dir(CommandlineOptions.data_dir);
- else
+ } else
AppDirs.try_migrate_data();
// Verify the private data directory before continuing