Bug 171135. Give user the option to launch YAST when micasad is not running.
This commit is contained in:
		| @@ -179,9 +179,7 @@ namespace Novell.CASA.GUI | |||||||
| 				} | 				} | ||||||
| 				else | 				else | ||||||
| 				{ | 				{ | ||||||
| 					// NOTE: Until we can figure out how to run YAST as root from here. | 					if (Common.IS_LINUX)					 | ||||||
| 					//if (Common.IS_LINUX) |  | ||||||
| 					if (false) |  | ||||||
| 					{ | 					{ | ||||||
| 						message = "CASA services are not available.\r\n\r\nConfigure CASA using YAST?"; | 						message = "CASA services are not available.\r\n\r\nConfigure CASA using YAST?"; | ||||||
| 						buttonType = Gtk.ButtonsType.YesNo; | 						buttonType = Gtk.ButtonsType.YesNo; | ||||||
| @@ -1666,7 +1664,15 @@ namespace Novell.CASA.GUI | |||||||
| 			if (args.Args[0].Equals(Gtk.ResponseType.Yes)) | 			if (args.Args[0].Equals(Gtk.ResponseType.Yes)) | ||||||
| 			{ | 			{ | ||||||
| 				// launch yast to configure CASA | 				// launch yast to configure CASA | ||||||
| 				Common.StartProcess("/sbin/yast2", "CASA");				 | 				String sCurrentDesktop = Environment.GetEnvironmentVariable("WINDOWMANAGER"); | ||||||
|  | 				if (sCurrentDesktop != null && (sCurrentDesktop.IndexOf("kde") > 0)) | ||||||
|  | 				{				 | ||||||
|  | 					Common.StartProcess("kdesu", "/sbin/yast2 CASA"); | ||||||
|  | 				} | ||||||
|  | 				else | ||||||
|  | 				{ | ||||||
|  | 					Common.StartProcess("gnomesu", "/sbin/yast2 CASA"); | ||||||
|  | 				} | ||||||
| 			} | 			} | ||||||
|  |  | ||||||
| 			if (md != null) | 			if (md != null) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user