First look at default.wm/Default/WM' before $(datadir)/default.wm' for

1999-03-23  Martin Baulig  <martin@home-of-linux.org>

	* capplets/wm-properties/wm-list.c (wm_list_init): First look
	at `default.wm/Default/WM' before `$(datadir)/default.wm' for
 	the default WM so the gnome-wm script can write the chosen WM
	there.
This commit is contained in:
Martin Baulig 1999-03-23 17:47:18 +00:00 committed by Martin Baulig
parent f15c405f95
commit d4375842c0
2 changed files with 17 additions and 1 deletions

View file

@ -1,3 +1,10 @@
1999-03-23 Martin Baulig <martin@home-of-linux.org>
* capplets/wm-properties/wm-list.c (wm_list_init): First look
at `default.wm/Default/WM' before `$(datadir)/default.wm' for
the default WM so the gnome-wm script can write the chosen WM
there.
1999-03-22 Jonathan Blandford <jrb@redhat.com>
* capplets/screensaver-properties/: removed print statements.

View file

@ -242,9 +242,18 @@ wm_list_init (void)
g_free (name);
}
if (!current_wm) {
name = gnome_config_get_string ("default.wm/Default/WM");
if (name) {
current_wm = wm_list_find_exec (window_managers, name);
g_free (name);
}
}
if (!current_wm) {
gchar *wmfile, *prefix;
wmfile = gnome_unconditional_datadir_file ("default.wm");
prefix = g_strconcat ("=", wmfile, "=/Default/WM", NULL);
name = gnome_config_get_string (prefix);