Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 89533 | Differences between
and this patch

Collapse All | Expand All

(-)src.original/src/app.cpp (-1 / +2 lines)
Lines 86-92 Link Here
86
    SetAppName(APP_NAME" v"APP_VERSION);
86
    SetAppName(APP_NAME" v"APP_VERSION);
87
    ConfigManager::Init(wxConfigBase::Get());
87
    ConfigManager::Init(wxConfigBase::Get());
88
    ConfigManager::Get()->Write("app_path", GetAppPath());
88
    ConfigManager::Get()->Write("app_path", GetAppPath());
89
    ConfigManager::Get()->Write("data_path", GetAppPath() + "/share/CodeBlocks");
89
    ConfigManager::Get()->Write("data_path", "/usr/share/codeblocks");
90
    ConfigManager::Get()->Write("plugin_path", "/usr/lib/codeblocks");
90
    m_HasDebugLog = ConfigManager::Get()->Read("/message_manager/has_debug_log", (long int)0) | m_HasDebugLog;
91
    m_HasDebugLog = ConfigManager::Get()->Read("/message_manager/has_debug_log", (long int)0) | m_HasDebugLog;
91
    ConfigManager::Get()->Write("/message_manager/has_debug_log", m_HasDebugLog);
92
    ConfigManager::Get()->Write("/message_manager/has_debug_log", m_HasDebugLog);
92
    if (ParseCmdLine(0L) != 0)
93
    if (ParseCmdLine(0L) != 0)
(-)src.original/src/main.cpp (-2 / +2 lines)
Lines 364-370 Link Here
364
    if (forceShow || showAtStartup)
364
    if (forceShow || showAtStartup)
365
    {
365
    {
366
        wxLogNull null; // disable error message if tips file does not exist
366
        wxLogNull null; // disable error message if tips file does not exist
367
        wxString tipsFile = ConfigManager::Get()->Read("/app_path") + "/tips.txt";
367
        wxString tipsFile = ConfigManager::Get()->Read("/data_path") + "/tips.txt";
368
        long tipsIndex = ConfigManager::Get()->Read("/next_tip", (long)0);
368
        long tipsIndex = ConfigManager::Get()->Read("/next_tip", (long)0);
369
        wxTipProvider* tipProvider = wxCreateFileTipProvider(tipsFile, tipsIndex);
369
        wxTipProvider* tipProvider = wxCreateFileTipProvider(tipsFile, tipsIndex);
370
        showAtStartup = wxShowTip(this, tipProvider, showAtStartup);
370
        showAtStartup = wxShowTip(this, tipProvider, showAtStartup);
Lines 573-579 Link Here
573
    
573
    
574
    PluginManager* m_PluginManager = Manager::Get()->GetPluginManager();
574
    PluginManager* m_PluginManager = Manager::Get()->GetPluginManager();
575
575
576
    wxString path = ConfigManager::Get()->Read("data_path") + "/plugins";
576
    wxString path = ConfigManager::Get()->Read("plugin_path") + "/plugins";
577
    m_pMsgMan->Log(_("Scanning for plugins in %s..."), path.c_str());
577
    m_pMsgMan->Log(_("Scanning for plugins in %s..."), path.c_str());
578
    int count = m_PluginManager->ScanForPlugins(path);
578
    int count = m_PluginManager->ScanForPlugins(path);
579
    m_pMsgMan->AppendLog(_("Found %d plugins: "), count);
579
    m_pMsgMan->AppendLog(_("Found %d plugins: "), count);

Return to bug 89533