~brandontschaefer/unity/lp.1328677-fixv2

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/unityshell.cpp

  • Committer: Brandon Schaefer
  • Date: 2014-08-26 22:59:57 UTC
  • Revision ID: brandon.schaefer@canonical.com-20140826225957-xz9q8kzcl6moxrgn
* Change location first run stamp is stored

Show diffs side-by-side

added added

removed removed

Lines of Context:
4041
4041
void UnityScreen::ShowFirstRunHints()
4042
4042
{
4043
4043
  sources_.AddTimeoutSeconds(1, [this] {
4044
 
    auto const& cache_dir = DesktopUtilities::GetUserCacheDirectory();
4045
 
    if (!cache_dir.empty() && !g_file_test((cache_dir+local::FIRST_RUN_STAMP).c_str(), G_FILE_TEST_EXISTS))
 
4044
    auto const& config_dir = DesktopUtilities::GetUserConfigDirectory();
 
4045
    if (!config_dir.empty() && !g_file_test((config_dir+local::FIRST_RUN_STAMP).c_str(), G_FILE_TEST_EXISTS))
4046
4046
    {
4047
4047
      // We focus the panel, so the shortcut hint will be hidden at first user input
4048
4048
      auto const& panels = panel_controller_->panels();
4055
4055
      shortcut_controller_->Show();
4056
4056
 
4057
4057
      glib::Error error;
4058
 
      g_file_set_contents((cache_dir+local::FIRST_RUN_STAMP).c_str(), "", 0, &error);
 
4058
      g_file_set_contents((config_dir+local::FIRST_RUN_STAMP).c_str(), "", 0, &error);
4059
4059
 
4060
4060
      if (error)
4061
4061
      {