Changeset 18491


Ignore:
Timestamp:
11/08/12 15:53:58 (11 years ago)
Author:
obi
Message:

fix last commit

Location:
titan/plugins
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/browser/browser.c

    r18490 r18491  
    2828void start(void)
    2929{
    30         if(!file_exist("/var/swap/player"))   
    31                 mkdir("/var/swap/player", 0777);
    32 
    3330        screenbrowser();
    3431}
  • titan/plugins/browser/browser.h

    r17093 r18491  
    187187        if(ret == 1) return;
    188188        setfbtransparent(255);
     189                       
     190        if(!file_exist(getconfig("browserfavfile", NULL)))   
     191        {
     192                if(!file_exist("/var/swap/player"))   
     193                        mkdir("/var/swap/player", 0777);
     194               
     195                char* cmd = NULL;
     196                cmd = ostrcat("cp /var/etc/titan/browserfav ", getconfig("browserfavfile", NULL), 0, 0);
     197                system(cmd);
     198                free(cmd), cmd = NULL;
     199        }
    189200
    190201        readbrowserfav(getconfig("browserfavfile", NULL));
  • titan/plugins/hbbtv/hbbtv.c

    r18490 r18491  
    2828void start(void)
    2929{
    30         if(!file_exist("/var/swap/player"))   
    31                 mkdir("/var/swap/player", 0777);
    32 
    3330        screenoperafav();
    3431}
     
    3734void starturl(void)
    3835{
    39         if(!file_exist("/var/swap/player"))   
    40                 mkdir("/var/swap/player", 0777);
    41 
    4236        if(status.aktservice->channel != NULL && status.aktservice->channel->hbbtvurl != NULL)
    4337        {
  • titan/plugins/hbbtv/hbbtv.h

    r17608 r18491  
    361361        char* opera_root, *opera_bin = NULL, *opera_dir = NULL;
    362362        char* opera_home = NULL, *opera_fonts = NULL, *opera_widgets = NULL;
     363
     364        if(!file_exist(getconfig("hbbtvfavfile", NULL)))   
     365        {
     366                if(!file_exist("/var/swap/player"))   
     367                        mkdir("/var/swap/player", 0777);
     368               
     369                char* cmd = NULL;
     370                cmd = ostrcat("cp /var/etc/titan/hbbtvfav ", getconfig("hbbtvfavfile", NULL), 0, 0);
     371                system(cmd);
     372                free(cmd), cmd = NULL;
     373        }
    363374
    364375        if(isdir("/var/usr/local/share/titan/plugins/hbbtv/opera"))
     
    731742        //setfbtransparent(255);
    732743
     744        if(!file_exist(getconfig("hbbtvfavfile", NULL)))   
     745        {
     746                if(!file_exist("/var/swap/player"))   
     747                        mkdir("/var/swap/player", 0777);
     748               
     749                char* cmd = NULL;
     750                cmd = ostrcat("cp /var/etc/titan/hbbtvfav ", getconfig("hbbtvfavfile", NULL), 0, 0);
     751                system(cmd);
     752                free(cmd), cmd = NULL;
     753        }
     754
    733755        readhbbtvfav(getconfig("hbbtvfavfile", NULL));
    734756        node = hbbtvfav;
Note: See TracChangeset for help on using the changeset viewer.