Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
rocksdanister committed Apr 25, 2022
1 parent 2798b71 commit 96caa0b
Show file tree
Hide file tree
Showing 15 changed files with 32 additions and 33 deletions.
2 changes: 1 addition & 1 deletion src/livelywpf/UWP/livelyPages/livelyPages.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
<Version>6.2.12</Version>
<Version>6.2.13</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
<Version>6.2.12</Version>
<Version>6.2.13</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/livelywpf/livelywpf/Core/Wallpapers/WebProcess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public WebProcess(string path, ILibraryModel model, ILivelyScreen display, strin
ProcessStartInfo start = new ProcessStartInfo
{
Arguments = cmdArgs.ToString(),
FileName = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "plugins", "cef", "LivelyCefSharp.exe"),
FileName = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "plugins", "cef", "Lively.PlayerCefSharp.exe"),
RedirectStandardInput = true,
RedirectStandardOutput = true,
RedirectStandardError = true,
Expand Down
10 changes: 7 additions & 3 deletions src/livelywpf/livelywpf/Core/WinDesktopCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
using livelywpf.Views;
using livelywpf.Views.Dialogues;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
Expand Down Expand Up @@ -63,14 +64,17 @@ public WinDesktopCore(IUserSettingsService userSettings,
ScreenHelper.DisplayUpdated += DisplaySettingsChanged_Hwnd;
WallpaperChanged += SetupDesktop_WallpaperChanged;

/*
SystemEvents.SessionSwitch += (s, e) => {
if (e.Reason == SessionSwitchReason.SessionUnlock)
{
ResetWallpaper();
//Issue: https://github.com/rocksdanister/lively/issues/802
if (!(IntPtr.Equals(DesktopWorkerW, IntPtr.Zero) || NativeMethods.IsWindow(DesktopWorkerW)))
{
Logger.Info("WorkerW invalid after unlock, resetting..");
ResetWallpaper();
}
}
};
*/
}

/// <summary>
Expand Down
7 changes: 1 addition & 6 deletions src/livelywpf/livelywpf/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public static void Main()
try
{
var server = new PipeServer(Constants.SingleInstance.PipeServerName);
server.MessageReceived += Server_MessageReceived1;
server.MessageReceived += (s, e) => App.Services.GetRequiredService<ICommandHandler>().ParseArgs(e);
}
catch (Exception e)
{
Expand All @@ -84,11 +84,6 @@ public static void Main()
}
}

private static void Server_MessageReceived1(object sender, string[] msg)
{
App.Services.GetRequiredService<ICommandHandler>().ParseArgs(msg);
}


private static Views.SetupWizard.SetupView setupWizard = null;
private static void App_Startup(object sender, StartupEventArgs e)
Expand Down
6 changes: 3 additions & 3 deletions src/livelywpf/livelywpf/Services/ScreensaverService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ private void ShowScreensavers()
-1, //topmost
userSettings.Settings.WallpaperArrangement != WallpaperArrangement.span ? item.Screen.Bounds.Left : 0,
userSettings.Settings.WallpaperArrangement != WallpaperArrangement.span ? item.Screen.Bounds.Top : 0,
0,
0,
0x0001))
item.Screen.Bounds.Width,
item.Screen.Bounds.Height,
userSettings.Settings.WallpaperArrangement != WallpaperArrangement.span ? 0x0040 : 0x0001)) //ignore WxH if span
{
LogUtil.LogWin32Error("Failed to show screensaver");
}
Expand Down
2 changes: 1 addition & 1 deletion src/livelywpf/livelywpf/Systray.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private void CreateContextMenu()

_notifyIcon.ContextMenuStrip.Items.Add(new CustomContextMenu.StripSeparatorCustom().stripSeparator);
_notifyIcon.ContextMenuStrip.Items.Add(Properties.Resources.TextSupport, Properties.Icons.icons8_heart_48).Click += (s, e) =>
Helpers.LinkHandler.OpenBrowser("https://ko-fi.com/rocksdanister");
Helpers.LinkHandler.OpenBrowser("https://rocksdanister.github.io/lively/coffee/");
_notifyIcon.ContextMenuStrip.Items.Add(new CustomContextMenu.StripSeparatorCustom().stripSeparator);
_notifyIcon.ContextMenuStrip.Items.Add(Properties.Resources.TitleReportBug, Properties.Icons.icons8_bug_50).Click += (s, e) =>
Helpers.LinkHandler.OpenBrowser("https://github.com/rocksdanister/lively/wiki/Common-Problems");
Expand Down
6 changes: 3 additions & 3 deletions src/livelywpf/livelywpf/ViewModels/AboutViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public RelayCommand LicenseDocCommand
if (_licenseDocCommand == null)
{
_licenseDocCommand = new RelayCommand(
param => ShowRtfDocDialog(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Docs", "license.rtf")));
param => LinkHandler.OpenBrowser("https://github.com/rocksdanister/lively/blob/core-separation/LICENSE"));
}
return _licenseDocCommand;
}
Expand All @@ -105,7 +105,7 @@ public RelayCommand AttribDocCommand
if (_attribDocCommand == null)
{
_attribDocCommand = new RelayCommand(
param => ShowRtfDocDialog(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Docs", "attribution.rtf")));
param => LinkHandler.OpenBrowser("https://rocksdanister.github.io/lively/attribution/"));
}
return _attribDocCommand;
}
Expand All @@ -119,7 +119,7 @@ public RelayCommand PrivacyDocCommand
if (_privacyDocCommand == null)
{
_privacyDocCommand = new RelayCommand(
param => LinkHandler.OpenBrowser("https://github.com/rocksdanister/lively/blob/dev-v1.0-fluent-netcore/PRIVACY.md"));
param => LinkHandler.OpenBrowser("https://github.com/rocksdanister/lively/blob/core-separation/PRIVACY.md"));
}
return _privacyDocCommand;
}
Expand Down
2 changes: 1 addition & 1 deletion src/livelywpf/livelywpf/ViewModels/HelpViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public RelayCommand SupportCommand
if (_supportCommand == null)
{
_supportCommand = new RelayCommand(
param => LinkHandler.OpenBrowser("https://ko-fi.com/rocksdanister"));
param => LinkHandler.OpenBrowser("https://rocksdanister.github.io/lively/coffee/"));
}
return _supportCommand;
}
Expand Down
2 changes: 1 addition & 1 deletion src/livelywpf/livelywpf/ViewModels/SettingsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ public int SelectedScreensaverWaitIndex
ScreensaverIdleTime.min45 => 2700000,
ScreensaverIdleTime.min60 => 3600000,
ScreensaverIdleTime.min120 => 7200000,
_ => 300000,
_ => 0,
};
if (idleTime != 0)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,4 @@
</ScrollViewer>

</Grid>
</Window>
</Window>
2 changes: 1 addition & 1 deletion src/livelywpf/livelywpf/Views/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@
Margin="5,5,5,5"
Navigating="ContentFrame_Navigating" />
</Grid>
</Window>
</Window>
4 changes: 2 additions & 2 deletions src/livelywpf/livelywpf/Views/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public MainWindow(IUserSettingsService userSettings, IDesktopCore desktopCore, S
this.settingsVm = settingsVm;

InitializeComponent();
wallpaperStatusText.Text = desktopCore.Wallpapers.Count.ToString();
wallpaperStatusText.Text = $"{desktopCore.Wallpapers.Count} Active Wallpaper(s)";
desktopCore.WallpaperChanged += SetupDesktop_WallpaperChanged;
Logger.Debug("MainWindow ctor initialized..");
}
Expand Down Expand Up @@ -222,7 +222,7 @@ private void SetupDesktop_WallpaperChanged(object sender, EventArgs e)
{
this.Activate();
}
wallpaperStatusText.Text = desktopCore.Wallpapers.Count.ToString();
wallpaperStatusText.Text = $"{desktopCore.Wallpapers.Count} Active Wallpaper(s)";
}));
}

Expand Down
14 changes: 7 additions & 7 deletions src/livelywpf/livelywpf/livelywpf.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<StartupObject>livelywpf.Program</StartupObject>
<ApplicationIcon>appicon.ico</ApplicationIcon>
<Version>1.0.0</Version>
<AssemblyVersion>1.7.4.2</AssemblyVersion>
<AssemblyVersion>1.7.5.2</AssemblyVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
Expand All @@ -28,25 +28,25 @@
<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.8.0" />
<PackageReference Include="DesktopBridge.Helpers" Version="1.2.2" />
<PackageReference Include="Downloader" Version="2.3.0" />
<PackageReference Include="H.Hooks" Version="1.4.14" />
<PackageReference Include="Magick.NET-Q16-x86" Version="8.4.0" />
<PackageReference Include="Downloader" Version="2.3.3" />
<PackageReference Include="H.Hooks" Version="1.4.21" />
<PackageReference Include="Magick.NET-Q16-x86" Version="11.1.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
<PackageReference Include="Microsoft.Toolkit.Mvvm" Version="7.1.2" />
<PackageReference Include="Microsoft.Toolkit.Wpf.UI.Controls" Version="6.1.2" />
<PackageReference Include="Microsoft.Toolkit.Wpf.UI.XamlHost" Version="6.1.2" />
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.1054.31" />
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.1185.39" />
<PackageReference Include="Microsoft.Windows.Compatibility" Version="6.0.0" />
<PackageReference Include="Microsoft.Windows.SDK.Contracts" Version="10.0.22000.196" />
<PackageReference Include="ModernWpfUI" Version="0.9.4" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="NLog" Version="4.7.12" />
<PackageReference Include="NLog" Version="4.7.15" />
<PackageReference Include="Octokit" Version="0.50.0" />
<PackageReference Include="RawInput.Sharp" Version="0.0.4" />
<PackageReference Include="ScreenRecorderLib" Version="3.1.2" />
<PackageReference Include="Sentinel.NLogViewer" Version="1.3.3" />
<PackageReference Include="SharpZipLib" Version="1.3.3" />
<PackageReference Include="YoutubeExplode" Version="6.0.5" />
<PackageReference Include="YoutubeExplode" Version="6.1.2" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/livelywpf/rootuwp/rootuwp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
<Version>6.2.12</Version>
<Version>6.2.13</Version>
</PackageReference>
<PackageReference Include="Microsoft.Toolkit.Win32.UI.XamlApplication">
<Version>6.1.3</Version>
Expand Down

0 comments on commit 96caa0b

Please sign in to comment.