Skip to content

Commit 8ccf6f9

Browse files
committed
updated resources for configuring Linux DEs
1 parent 207d27e commit 8ccf6f9

File tree

2 files changed

+7
-18
lines changed

2 files changed

+7
-18
lines changed

BSCP/Configurator/MainWindow.xaml.cs

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,7 @@
11
using System;
2-
using System.Collections.Generic;
32
using System.Collections.ObjectModel;
4-
using System.Linq;
5-
using System.Text;
6-
using System.Threading.Tasks;
73
using System.Windows;
84
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;
165
using Microsoft.Win32;
176
using System.Security.AccessControl;
187

@@ -51,10 +40,9 @@ public MainWindow()
5140
} catch (ArgumentException)
5241
{
5342
//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"));
5846
context.Add(new ConfigModel("Windows Explorer", "/C \"explorer.exe\"", "cmd.exe", false));
5947
}
6048

BSCP/Configurator/wsl_setup.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ sudo apt-get install unity-settings-daemon #fix for mate-settings-daemon not wor
2424
#install XFCE4
2525
sudo apt-get install xubuntu-desktop
2626

27-
28-
2927
#install KDE
3028

31-
#install Gnome
29+
sudo apt-get install kubuntu-desktop
30+
31+
#note: this breaks mate. Now must change mate settings
32+
sudo sed -i.orig 's/^Exec=caja -n/& --sync/' /usr/share/applications/caja.desktop

0 commit comments

Comments
 (0)