Skip to content

Commit b2f6357

Browse files
committed
v1.6
1 parent ed11907 commit b2f6357

File tree

4 files changed

+183
-98
lines changed

4 files changed

+183
-98
lines changed

lib/getWallpaper.scpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
tell application "System Events"
22
set theList to {}
33
repeat with current_desktop in desktops
4-
set picPath to POSIX file (picture of current_desktop) as string
4+
set picPath to picture of current_desktop as string
55
tell application "Finder" to set end of theList to picPath
66
end repeat
7-
7+
88
return theList
9-
end tell
9+
end tell

lib/presentationMode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const getWallpaper = util.promisify((appPath, callback) => {
1616
});
1717

1818
const changeWallpaper = (appPath, theList) => {
19+
console.log(theList);
1920
osascript.executeFile(
2021
`${appPath}/lib/setWallpaper.scpt`,
2122
{ theList: theList },
@@ -63,7 +64,6 @@ const turnOn = async (options = {}, appPath) => {
6364
}
6465

6566
const wallpaper = await getWallpaper(appPath);
66-
store.set("wallpaper", wallpaper);
6767
changeWallpaper(appPath, list);
6868
}
6969

0 commit comments

Comments
 (0)