Changeset 45014 for titan/titan/infobar.h
- Timestamp:
- 12/14/20 14:04:17 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/infobar.h
r45013 r45014 816 816 status.tuxtxt = 1; 817 817 818 char* res = NULL; 819 char* cmd = NULL; 820 // cmd = ostrcat("fbset | sed -nr 's/.*mode.*\\\"([^\\\"]+)-.*/\\\1/p' | tr 'x' ' '", NULL, 0, 0); 821 cmd = ostrcat("fbset | sed -nr 's/.*mode.*\"([^\"]+)-.*/\\1/p' | tr 'x' ' '", NULL, 0, 0); 822 823 debug(10, "cmd=%s", cmd); 824 res = string_newline(command(cmd)); 825 if(res == NULL) 826 { 827 debug(10, "set default res: %s", res); 828 res = ostrcat("1280 720", NULL, 0, 0); 829 } 830 tmpstr = ostrcat("run.sh restart ", res, 0, 0); 818 tmpstr = ostrcat("run.sh restart ", oitoa(getfbxres()), 0, 0); 819 tmpstr = ostrcat(tmpstr, " ", 1, 0); 820 tmpstr = ostrcat(tmpstr, oitoa(getfbyres()), 1, 0); 831 821 tmpstr = ostrcat(tmpstr, " ", 1, 0); 832 822 tmpstr = ostrcat(tmpstr, status.aktservice->channel->hbbtvurl, 1, 0); … … 842 832 system(tmpstr); 843 833 free(tmpstr), tmpstr = NULL; 844 free(res), res = NULL;845 free(cmd), cmd = NULL;846 834 847 835 while(1) … … 899 887 system(tmpstr); 900 888 free(tmpstr), tmpstr = NULL; 901 free(res), res = NULL;902 free(cmd), cmd = NULL;903 904 889 #endif 905 890
Note: See TracChangeset
for help on using the changeset viewer.