aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/AppLauncherDaemon.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-02-02 14:31:39 -0500
committerMichael <[email protected]>2017-02-02 14:31:39 -0500
commit44c1e66dd09d39773e329f138d11946e516a5308 (patch)
tree1caab6b3fd5a81bf96c32137851c37cc3c60b6c4 /ShiftOS_TheReturn/AppLauncherDaemon.cs
parent3a41ba45e7ac0df930066a79540f82544dbd8114 (diff)
downloadshiftos_thereturn-44c1e66dd09d39773e329f138d11946e516a5308.tar.gz
shiftos_thereturn-44c1e66dd09d39773e329f138d11946e516a5308.tar.bz2
shiftos_thereturn-44c1e66dd09d39773e329f138d11946e516a5308.zip
Lua app launcher items
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; }
+ }
}