Skip to content

Commit

Permalink
update pixbuf only on windows osscadsuite
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikMennen committed Oct 4, 2024
1 parent e85c553 commit 231e76f
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using CommunityToolkit.Mvvm.Input;
using System.Runtime.InteropServices;
using CommunityToolkit.Mvvm.Input;
using Dock.Model.Core;
using OneWare.Essentials.Helpers;
using OneWare.Essentials.Models;
Expand Down Expand Up @@ -193,8 +194,9 @@ public void OnInitialized(IContainerProvider containerProvider)
environmentService.SetEnvironmentVariable("GDK_PIXBUF_MODULEDIR", Path.Combine(x, "lib", "gdk-pixbuf-2.0", "2.10.0", "loaders"));
environmentService.SetEnvironmentVariable("GDK_PIXBUF_MODULE_FILE", Path.Combine(x, "lib", "gdk-pixbuf-2.0", "2.10.0", "loaders.cache"));
_ = containerProvider.Resolve<IChildProcessService>().ExecuteShellAsync($"gdk-pixbuf-query-loaders{PlatformHelper.ExecutableExtension}",
["--update-cache"], x, "Updating gdk-pixbuf cache");
if(RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
_ = containerProvider.Resolve<IChildProcessService>().ExecuteShellAsync($"gdk-pixbuf-query-loaders{PlatformHelper.ExecutableExtension}",
["--update-cache"], x, "Updating gdk-pixbuf cache");
});

containerProvider.Resolve<IProjectExplorerService>().RegisterConstructContextMenu((x, l) =>
Expand Down

0 comments on commit 231e76f

Please sign in to comment.