修复部分程序无法启动bug

This commit is contained in:
liufei
2021-08-02 11:01:29 +08:00
parent 2673b9862c
commit 53481bf907
3 changed files with 5 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ namespace GeekDesk
mutex = new System.Threading.Mutex(true, Constants.MY_NAME, out ret); mutex = new System.Threading.Mutex(true, Constants.MY_NAME, out ret);
if (!ret) if (!ret)
{ {
Environment.Exit(0); //Environment.Exit(0);
} }
} }
} }

View File

@@ -7,7 +7,7 @@
xmlns:hc="https://handyorg.github.io/handycontrol" xmlns:hc="https://handyorg.github.io/handycontrol"
mc:Ignorable="d" mc:Ignorable="d"
Background="AliceBlue" Background="AliceBlue"
d:DesignHeight="380" d:DesignWidth="450"> d:DesignHeight="500" d:DesignWidth="450">
<hc:SimplePanel Margin="20"> <hc:SimplePanel Margin="20">
<hc:UniformSpacingPanel Spacing="10" Margin="0,0,-40,-12" Grid.ColumnSpan="4"> <hc:UniformSpacingPanel Spacing="10" Margin="0,0,-40,-12" Grid.ColumnSpan="4">
@@ -97,6 +97,8 @@
</hc:PreviewSlider> </hc:PreviewSlider>
</hc:UniformSpacingPanel> </hc:UniformSpacingPanel>
</StackPanel> </StackPanel>
<hc:Divider LineStrokeDashArray="3,3" Margin="0,341.5,0,-215.5" LineStroke="Black" Grid.ColumnSpan="4"/>
<TextBlock Text="图标字体颜色:" Margin="0,358,0,-358" />
</hc:SimplePanel> </hc:SimplePanel>
</UserControl> </UserControl>

View File

@@ -118,7 +118,7 @@ namespace GeekDesk.Control.UserControls.PannelCard
Process p = new Process(); Process p = new Process();
p.StartInfo.FileName = icon.Path; p.StartInfo.FileName = icon.Path;
p.StartInfo.WorkingDirectory = icon.Path.Substring(0, icon.Path.LastIndexOf("\\"));
switch (type) switch (type)
{ {
case IconStartType.ADMIN_STARTUP: case IconStartType.ADMIN_STARTUP: