From 44c1e66dd09d39773e329f138d11946e516a5308 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 2 Feb 2017 14:31:39 -0500 Subject: Lua app launcher items --- ShiftOS_TheReturn/AppLauncherDaemon.cs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'ShiftOS_TheReturn/AppLauncherDaemon.cs') diff --git a/ShiftOS_TheReturn/AppLauncherDaemon.cs b/ShiftOS_TheReturn/AppLauncherDaemon.cs index 9a0754b..7ef34c1 100644 --- a/ShiftOS_TheReturn/AppLauncherDaemon.cs +++ b/ShiftOS_TheReturn/AppLauncherDaemon.cs @@ -30,6 +30,7 @@ using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using Newtonsoft.Json; +using ShiftOS.Objects.ShiftFS; namespace ShiftOS.Engine { @@ -84,6 +85,15 @@ namespace ShiftOS.Engine } } } + + foreach(var file in Utils.GetFiles(Paths.GetPath("applauncher"))) + { + if (file.EndsWith(".al")) + { + var item = JsonConvert.DeserializeObject(Utils.ReadAllText(file)); + win.Add(item); + } + } return win; } @@ -95,4 +105,14 @@ namespace ShiftOS.Engine public Type LaunchType { get; internal set; } } + + public class LuaLauncherItem : LauncherItem + { + public LuaLauncherItem(string file) + { + LaunchPath = file; + } + + public string LaunchPath { get; private set; } + } } -- cgit v1.2.3