Fix resolving paths for .face.icon in dashboard and add home ('~') path support (#606)
* Fix resolving paths for .face.icon in dashboard and add home ('~') path support
* Fix ESLint issues
* Update src/lib/utils.ts
Co-authored-by: davfsa <davfsa@gmail.com>
* Update src/lib/utils.ts
* Rename `resolvePath` to `normalizePath`
* Rename missing reference
---------
Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import icons from '../lib/icons/icons';
|
||||
import { bash, dependencies, Notify, isAnImage } from '../lib/utils';
|
||||
import { bash, dependencies, Notify, isAnImage, normalizePath } from '../lib/utils';
|
||||
import options from '../options';
|
||||
import Wallpaper from 'src/services/Wallpaper';
|
||||
|
||||
@@ -8,7 +8,7 @@ const { matugen } = options.theme;
|
||||
const ensureMatugenWallpaper = (): void => {
|
||||
const wallpaperPath = options.wallpaper.image.get();
|
||||
|
||||
if (matugen.get() && (!options.wallpaper.image.get().length || !isAnImage(wallpaperPath))) {
|
||||
if (matugen.get() && (!wallpaperPath.length || !isAnImage(normalizePath(wallpaperPath)))) {
|
||||
Notify({
|
||||
summary: 'Matugen Failed',
|
||||
body: "Please select a wallpaper in 'Theming > General' first.",
|
||||
|
||||
Reference in New Issue
Block a user