~cairo-dock-team/ubuntu/quantal/cairo-dock-plug-ins/3.0.2

« back to all changes in this revision

Viewing changes to dnd2share/src/applet-backend-dropbox.c

Tags: upstream-2.2.0~0beta4
ImportĀ upstreamĀ versionĀ 2.2.0~0beta4

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
                cCommand= g_strdup_printf ("cp '%s' '%s'", cFilePath, myConfig.cDropboxDir);
41
41
        else
42
42
                cCommand= g_strdup_printf ("cp '%s' ~/Dropbox/Public", cFilePath);
43
 
        g_print ("commande dropbox1 : %s\n", cCommand);
 
43
        cd_debug ("commande dropbox1 : %s\n", cCommand);
44
44
        int r = system (cCommand);
45
45
        g_free (cCommand);
46
46
        
62
62
        else
63
63
                cCommand = g_strdup_printf ("dropbox puburl 'Dropbox/Public/%s'", cFileName); 
64
64
        
65
 
        g_print ("commande dropbox2 : %s\n", cCommand);
 
65
        cd_debug ("commande dropbox2 : %s\n", cCommand);
66
66
        g_free (cFileName);
67
67
        gchar *cResult = cairo_dock_launch_command_sync (cCommand);
68
68
        g_free (cCommand);
78
78
                cResult[strlen(cResult)-1] = '\0';
79
79
        
80
80
        // Enfin on remplit la memoire partagee avec nos URLs.
81
 
        myData.cResultUrls = g_new0 (gchar *, NB_URLS+1);
82
81
        myData.cResultUrls[0] = cResult;
83
82
}
84
83