summaryrefslogtreecommitdiff
path: root/src/main.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2024-07-02 12:16:52 +0200
committerJörg Frings-Fürst <debian@jff.email>2024-07-02 12:16:52 +0200
commit1de91b6c81b1cff3c922eae852e5bb08f32cd2d3 (patch)
tree6d8390c1c32b05e048599e529e2aef9d345d4160 /src/main.vala
parentdcfb4504919bc8bc36e8b38d2a88349e4f549b10 (diff)
parentf6062696f6bbd00d4eaa8a6e994dabfefc455f31 (diff)
Update upstream source from tag 'upstream/0.32.7'
Update to upstream version '0.32.7' with Debian dir 56d9facdfffd13cdf018382bd6c17544613d8ff0
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