Просмотр исходного кода

修复部分程序无法启动bug

liufei 4 лет назад
Родитель
Сommit
53481bf907

+ 1 - 1
App.xaml.cs

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

+ 3 - 1
Control/UserControls/Config/ThemeControl.xaml

@@ -7,7 +7,7 @@
              xmlns:hc="https://handyorg.github.io/handycontrol"
              mc:Ignorable="d" 
              Background="AliceBlue"
-             d:DesignHeight="380" d:DesignWidth="450">
+             d:DesignHeight="500" d:DesignWidth="450">
     <hc:SimplePanel Margin="20">
 
         <hc:UniformSpacingPanel Spacing="10" Margin="0,0,-40,-12" Grid.ColumnSpan="4">
@@ -97,6 +97,8 @@
                 </hc:PreviewSlider>
             </hc:UniformSpacingPanel>
         </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>
 </UserControl>

+ 1 - 1
Control/UserControls/PannelCard/RightCardControl.xaml.cs

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