source:
proiecte/PPPP/gdm/debian/patches/07_correct_distribution_version.patch
@
141
Last change on this file since 141 was 134, checked in by , 14 years ago | |
---|---|
File size: 1.1 KB |
-
./gdm-2.27.4/gui/simple-greeter/gdm-greeter-login-window.c
# # Description: use lsb informations to correctly display the distribution # Upstream: http://bugzilla.gnome.org/show_bug.cgi?id=589549 # Ubuntu: https://bugs.launchpad.net/bugs/396805 #
old new 1265 1265 static char * 1266 1266 get_system_version (void) 1267 1267 { 1268 char *version ;1268 char *version, *output; 1269 1269 int i; 1270 1270 1271 1271 version = NULL; 1272 output = NULL; 1273 1274 if (g_spawn_command_line_sync ("lsb_release -sd", &output, NULL, NULL, NULL)) { 1275 version = g_strchomp (output); 1276 return version; 1277 } 1272 1278 1273 1279 for (i = 0; known_etc_info_files [i]; i++) { 1274 1280 char *path1; … … 1289 1295 } 1290 1296 1291 1297 if (version == NULL) { 1292 char *output;1293 output = NULL;1294 1298 if (g_spawn_command_line_sync ("uname -sr", &output, NULL, NULL, NULL)) { 1295 1299 version = g_strchomp (output); 1296 1300 }
Note: See TracBrowser
for help on using the repository browser.