Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9b37d6 commit f1d8d75Copy full SHA for f1d8d75
python3/get-osx-wallpaper.py
@@ -12,10 +12,10 @@
12
13
14
### Warning
15
-+ This approach doesn't work with multiple monitors.
++ This approach doesn't work with multiple monitors or virtual desktops.
16
17
### Tested On
18
-+ OSX Yosemite 10.10.2 with a single monitor on a MBP.
++ OSX Yosemite 10.10.2 with a single desktop on a MBP.
19
20
### Usage
21
Ensure `db_path` and `wallpaper_dir` are correctly set below.
@@ -61,5 +61,7 @@
61
c = conn.cursor()
62
data_table = list(c.execute('SELECT * FROM data'))
63
64
+print(data_table)
65
+
66
# The current wallpaper is the last element in the data table.
67
print("{}/{}".format(wallpaper_dir, data_table[-1][0]))
0 commit comments