~cahr-gr/gloobus-preview/monitors

« back to all changes in this revision

Viewing changes to src/gloobus-preview-singleton.cpp

  • Committer: Jordi Puigdellívol
  • Date: 2010-05-28 13:27:34 UTC
  • Revision ID: jordi@badchoice-20100528132734-hua01tfu4fhkipe2
Installing font working, it needs a feedback message, maybe just change the install icon to something meaning installed would be enough

Show diffs side-by-side

added added

removed removed

Lines of Context:
151
151
        quit();
152
152
}
153
153
 
 
154
bool Gloobus::installfont(void)
 
155
{
 
156
    string home = g_get_home_dir();
 
157
        string fontsDir = home + "/.fonts/";
 
158
    string cmd = "cp " + m_filename + " " + fontsDir;
 
159
 
 
160
    g_debug("Installing font: %s", cmd.c_str());
 
161
    g_spawn_command_line_async(cmd.c_str(), NULL);
 
162
    return true;
 
163
 
 
164
    //TODO: Display an sucesfull installed message or replace the icon for an other that means installed
 
165
 
 
166
}
 
167
 
154
168
void Gloobus::load_folder_filenames  ( void )
155
169
{
156
170
        string folder;