commit 4241063dc70d7993bdef131b20d60e758b1d9c14
Author: Przemysław Buczkowski <przemub@przemub.pl>
Date: Sat Nov 9 17:25:41 2013 +0100
Notifications: fix issue with launch folder
* App tried to create symlink in folder ~/config/boot/launch, what throw an error, because this folder is read-only now.
* Now it creates such in ~/config/settings/boot/launch.
Signed-off-by: Przemysław Buczkowski <przemub@przemub.pl>
diff --git a/src/preferences/notifications/GeneralView.cpp b/src/preferences/notifications/GeneralView.cpp
index ecce5b6..db6e9ce 100644
a
|
b
|
|
1 | 1 | /* |
2 | | * Copyright 2010, Haiku, Inc. All Rights Reserved. |
| 2 | * Copyright 2010-2013, Haiku, Inc. All Rights Reserved. |
3 | 3 | * Copyright 2009, Pier Luigi Fiorini. |
4 | 4 | * Distributed under the terms of the MIT License. |
5 | 5 | * |
… |
… |
GeneralView::Save()
|
295 | 295 | BPath serverPath(&ref); |
296 | 296 | |
297 | 297 | // Start server at boot time |
298 | | ret = find_directory(B_USER_BOOT_DIRECTORY, &path, true); |
| 298 | ret = find_directory(B_USER_SETTINGS_DIRECTORY, &path, true); |
299 | 299 | if (ret != B_OK) { |
300 | 300 | BAlert* alert = new BAlert("", |
301 | 301 | B_TRANSLATE("Can't save preferences, you probably don't have " |
302 | | "write access to the boot settings directory."), B_TRANSLATE("OK"), |
| 302 | "write access to the settings directory."), B_TRANSLATE("OK"), |
303 | 303 | NULL, NULL, |
304 | 304 | B_WIDTH_AS_USUAL, B_STOP_ALERT); |
305 | 305 | alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE); |
… |
… |
GeneralView::Save()
|
307 | 307 | return ret; |
308 | 308 | } |
309 | 309 | |
310 | | path.Append("launch"); |
| 310 | path.Append("boot/launch"); |
311 | 311 | BDirectory directory(path.Path()); |
312 | 312 | BEntry entry(&directory, serverPath.Leaf()); |
313 | 313 | |
diff --git a/src/preferences/notifications/Notifications.rdef b/src/preferences/notifications/Notifications.rdef
index 77c0e0c..363a596 100644
a
|
b
|
resource app_version {
|
12 | 12 | internal = 0, |
13 | 13 | |
14 | 14 | short_info = "Notifications", |
15 | | long_info = "Notifications ©2009 Pier Luigi Fiorini ©2010 Haiku" |
| 15 | long_info = "Notifications ©2009 Pier Luigi Fiorini ©2010-2013 Haiku" |
16 | 16 | }; |
17 | 17 | |
18 | 18 | resource app_flags B_SINGLE_LAUNCH; |