Notifications: fix issue with launch folder. #10185
* 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: Matt Madia <[email protected]>
This commit is contained in:
committed by
Matt Madia
parent
b1f0ca873f
commit
dfbb97132f
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2010, Haiku, Inc. All Rights Reserved.
|
* Copyright 2010-2013, Haiku, Inc. All Rights Reserved.
|
||||||
* Copyright 2009, Pier Luigi Fiorini.
|
* Copyright 2009, Pier Luigi Fiorini.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
@@ -295,11 +295,11 @@ GeneralView::Save()
|
|||||||
BPath serverPath(&ref);
|
BPath serverPath(&ref);
|
||||||
|
|
||||||
// Start server at boot time
|
// Start server at boot time
|
||||||
ret = find_directory(B_USER_BOOT_DIRECTORY, &path, true);
|
ret = find_directory(B_USER_SETTINGS_DIRECTORY, &path, true);
|
||||||
if (ret != B_OK) {
|
if (ret != B_OK) {
|
||||||
BAlert* alert = new BAlert("",
|
BAlert* alert = new BAlert("",
|
||||||
B_TRANSLATE("Can't save preferences, you probably don't have "
|
B_TRANSLATE("Can't save preferences, you probably don't have "
|
||||||
"write access to the boot settings directory."), B_TRANSLATE("OK"),
|
"write access to the settings directory."), B_TRANSLATE("OK"),
|
||||||
NULL, NULL,
|
NULL, NULL,
|
||||||
B_WIDTH_AS_USUAL, B_STOP_ALERT);
|
B_WIDTH_AS_USUAL, B_STOP_ALERT);
|
||||||
alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE);
|
alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE);
|
||||||
@@ -307,7 +307,7 @@ GeneralView::Save()
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
path.Append("launch");
|
path.Append("boot/launch");
|
||||||
BDirectory directory(path.Path());
|
BDirectory directory(path.Path());
|
||||||
BEntry entry(&directory, serverPath.Leaf());
|
BEntry entry(&directory, serverPath.Leaf());
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ resource app_version {
|
|||||||
internal = 0,
|
internal = 0,
|
||||||
|
|
||||||
short_info = "Notifications",
|
short_info = "Notifications",
|
||||||
long_info = "Notifications ©2009 Pier Luigi Fiorini ©2010 Haiku"
|
long_info = "Notifications ©2009 Pier Luigi Fiorini ©2010-2013 Haiku"
|
||||||
};
|
};
|
||||||
|
|
||||||
resource app_flags B_SINGLE_LAUNCH;
|
resource app_flags B_SINGLE_LAUNCH;
|
||||||
|
|||||||
Reference in New Issue
Block a user