Mercurial > audlegacy
comparison src/audacious/main.c @ 2709:47ea8eedd428 trunk
[svn] - drop controlsocket code. this probably does not compile yet.
author | nenolod |
---|---|
date | Wed, 09 May 2007 14:03:11 -0700 |
parents | 2d1837805ca4 |
children | c35913222440 |
comparison
equal
deleted
inserted
replaced
2708:b66e6a928a6e | 2709:47ea8eedd428 |
---|---|
51 | 51 |
52 #ifdef USE_DBUS | 52 #ifdef USE_DBUS |
53 # include "dbus.h" | 53 # include "dbus.h" |
54 #endif | 54 #endif |
55 | 55 |
56 #include "controlsocket.h" | |
57 #include "dnd.h" | 56 #include "dnd.h" |
58 #include "effect.h" | 57 #include "effect.h" |
59 #include "ui_equalizer.h" | 58 #include "ui_equalizer.h" |
60 #include "general.h" | 59 #include "general.h" |
61 #include "genevent.h" | 60 #include "genevent.h" |
904 { | 903 { |
905 dump_version(); | 904 dump_version(); |
906 exit(EXIT_SUCCESS); | 905 exit(EXIT_SUCCESS); |
907 } | 906 } |
908 | 907 |
909 if (session == -1) { | |
910 if (!remote) | |
911 session = ctrlsocket_get_session_id(); | |
912 else | |
913 session = 0; | |
914 } | |
915 | |
916 if (filenames != NULL) | 908 if (filenames != NULL) |
917 { | 909 { |
918 gint pos = 0; | 910 gint pos = 0; |
919 gint i = 0; | 911 gint i = 0; |
920 GList *fns = NULL; | 912 GList *fns = NULL; |
1141 | 1133 |
1142 g_random_set_seed(time(NULL)); | 1134 g_random_set_seed(time(NULL)); |
1143 | 1135 |
1144 bmp_config_load(); | 1136 bmp_config_load(); |
1145 | 1137 |
1146 if (options.session != -1 || !ctrlsocket_setup()) { | 1138 if (options.session != -1) { |
1147 handle_cmd_line_options(&options, TRUE); | 1139 handle_cmd_line_options(&options, TRUE); |
1148 exit(EXIT_SUCCESS); | 1140 exit(EXIT_SUCCESS); |
1149 } | 1141 } |
1150 | 1142 |
1151 plugin_system_init(); | 1143 plugin_system_init(); |
1189 GDK_THREADS_LEAVE(); | 1181 GDK_THREADS_LEAVE(); |
1190 | 1182 |
1191 #ifdef USE_DBUS | 1183 #ifdef USE_DBUS |
1192 init_dbus(); | 1184 init_dbus(); |
1193 #endif | 1185 #endif |
1194 | |
1195 ctrlsocket_start(); | |
1196 | 1186 |
1197 handle_cmd_line_options(&options, FALSE); | 1187 handle_cmd_line_options(&options, FALSE); |
1198 | 1188 |
1199 if (options.headless != 1) | 1189 if (options.headless != 1) |
1200 { | 1190 { |