|
1 | 1 | using System; |
2 | | -using System.Collections.Generic; |
3 | 2 | using System.Collections.ObjectModel; |
4 | | -using System.Linq; |
5 | | -using System.Text; |
6 | | -using System.Threading.Tasks; |
7 | 3 | using System.Windows; |
8 | 4 | using System.Windows.Controls; |
9 | | -using System.Windows.Data; |
10 | | -using System.Windows.Documents; |
11 | | -using System.Windows.Input; |
12 | | -using System.Windows.Media; |
13 | | -using System.Windows.Media.Imaging; |
14 | | -using System.Windows.Navigation; |
15 | | -using System.Windows.Shapes; |
16 | 5 | using Microsoft.Win32; |
17 | 6 | using System.Security.AccessControl; |
18 | 7 |
|
@@ -51,10 +40,9 @@ public MainWindow() |
51 | 40 | } catch (ArgumentException) |
52 | 41 | { |
53 | 42 | //create defaults otherwise |
54 | | - context.Add(new ConfigModel("Unity", "-c \"cd ~/ && ./unity.sh\"", "bash.exe")); |
55 | | - context.Add(new ConfigModel("XFCE", "-c \"cd ~/ && ./xfce.sh\"", "bash.exe")); |
56 | | - context.Add(new ConfigModel("Cinnamon", "-c \"cd ~/ && ./cinnamon.sh\"", "bash.exe")); |
57 | | - context.Add(new ConfigModel("Mate", "-c \"cd ~/ && ./mate.sh\"", "bash.exe")); |
| 43 | + context.Add(new ConfigModel("KDE", "-c \"cd ~/ && DISPLAY=:0 startkde \"", "bash.exe")); |
| 44 | + context.Add(new ConfigModel("XFCE", "-c \"cd ~/ && DISPLAY=:0 startxfce4\"", "bash.exe")); |
| 45 | + context.Add(new ConfigModel("Mate", "-c \"cd ~/ && DISPLAY=:0 exec mate-session\"", "bash.exe")); |
58 | 46 | context.Add(new ConfigModel("Windows Explorer", "/C \"explorer.exe\"", "cmd.exe", false)); |
59 | 47 | } |
60 | 48 |
|
|
0 commit comments