aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/AppLauncherDaemon.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS_TheReturn/AppLauncherDaemon.cs')
-rw-r--r--ShiftOS_TheReturn/AppLauncherDaemon.cs20
1 files changed, 20 insertions, 0 deletions
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<LuaLauncherItem>(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; }
+ }
}