~unity-team/unity-scopes-api/trunk

« back to all changes in this revision

Viewing changes to scoperegistry/scoperegistry.cpp

  • Committer: Bileto Bot
  • Date: 2017-01-16 02:42:04 UTC
  • mfrom: (372.1.2 merge-devel)
  • Revision ID: ci-train-bot@canonical.com-20170116024204-uf4w7rq6k9qat69k
* Create $HOME/.local/share/applications if it does not exist. lp:1645798
* Fixed lots of compiler warnings.
* Changed cmake files to work with new gtest.

Show diffs side-by-side

added added

removed removed

Lines of Context:
496
496
        string tmp_dir = string("/run/user/") + std::to_string(geteuid()) + "/scopes/leaf-net";
497
497
        make_directories(tmp_dir, 0700);
498
498
 
 
499
        // Make sure that the directory for .desktop files exists.
 
500
        string desktop_files_dir = RegistryObject::desktop_files_dir();
 
501
        if (!desktop_files_dir.empty())
 
502
        {
 
503
            make_directories(desktop_files_dir, 0700);
 
504
        }
 
505
 
499
506
        // Collect the registry config data.
500
507
 
501
508
        string mw_kind;