From dfbb97132ffc53c4ac814dea6c22a5037fb31a76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Buczkowski?= Date: Sun, 10 Nov 2013 12:31:30 -0500 Subject: [PATCH] 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 --- src/preferences/notifications/GeneralView.cpp | 8 ++++---- src/preferences/notifications/Notifications.rdef | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/preferences/notifications/GeneralView.cpp b/src/preferences/notifications/GeneralView.cpp index ecce5b67d5..db6e9ceba9 100644 --- a/src/preferences/notifications/GeneralView.cpp +++ b/src/preferences/notifications/GeneralView.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2010, Haiku, Inc. All Rights Reserved. + * Copyright 2010-2013, Haiku, Inc. All Rights Reserved. * Copyright 2009, Pier Luigi Fiorini. * Distributed under the terms of the MIT License. * @@ -295,11 +295,11 @@ GeneralView::Save() BPath serverPath(&ref); // 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) { BAlert* alert = new BAlert("", 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, B_WIDTH_AS_USUAL, B_STOP_ALERT); alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE); @@ -307,7 +307,7 @@ GeneralView::Save() return ret; } - path.Append("launch"); + path.Append("boot/launch"); BDirectory directory(path.Path()); BEntry entry(&directory, serverPath.Leaf()); diff --git a/src/preferences/notifications/Notifications.rdef b/src/preferences/notifications/Notifications.rdef index 77c0e0cacf..363a5962be 100644 --- a/src/preferences/notifications/Notifications.rdef +++ b/src/preferences/notifications/Notifications.rdef @@ -12,7 +12,7 @@ resource app_version { internal = 0, 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;