Ticket #10185: notifications-launch.patch

File notifications-launch.patch, 2.2 KB (added by przemub, 6 years ago)
  • src/preferences/notifications/GeneralView.cpp

    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  
    11/*
    2  * Copyright 2010, Haiku, Inc. All Rights Reserved.
     2 * Copyright 2010-2013, Haiku, Inc. All Rights Reserved.
    33 * Copyright 2009, Pier Luigi Fiorini.
    44 * Distributed under the terms of the MIT License.
    55 *
    GeneralView::Save()  
    295295    BPath serverPath(&ref);
    296296
    297297    // 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);
    299299    if (ret != B_OK) {
    300300        BAlert* alert = new BAlert("",
    301301            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"),
    303303            NULL, NULL,
    304304            B_WIDTH_AS_USUAL, B_STOP_ALERT);
    305305        alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE);
    GeneralView::Save()  
    307307        return ret;
    308308    }
    309309
    310     path.Append("launch");
     310    path.Append("boot/launch");
    311311    BDirectory directory(path.Path());
    312312    BEntry entry(&directory, serverPath.Leaf());
    313313
  • src/preferences/notifications/Notifications.rdef

    diff --git a/src/preferences/notifications/Notifications.rdef b/src/preferences/notifications/Notifications.rdef
    index 77c0e0c..363a596 100644
    a b resource app_version {  
    1212    internal = 0,
    1313
    1414    short_info = "Notifications",
    15     long_info = "Notifications ©2009 Pier Luigi Fiorini ©2010 Haiku"
     15    long_info = "Notifications ©2009 Pier Luigi Fiorini ©2010-2013 Haiku"
    1616};
    1717
    1818resource app_flags B_SINGLE_LAUNCH;