gnome-wallpaper-changer 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md
CHANGED
|
@@ -55,10 +55,15 @@ Multiple Ruby managers, such as RVM, heavily modify the environment in order to
|
|
|
55
55
|
5. Create new Pull Request
|
|
56
56
|
|
|
57
57
|
## Changelog
|
|
58
|
-
|
|
58
|
+
|
|
59
|
+
### 0.0.3
|
|
60
|
+
|
|
61
|
+
* Fixed an error installing autostart on a fresh Linux setup
|
|
62
|
+
|
|
63
|
+
### 0.0.2
|
|
59
64
|
|
|
60
65
|
* Suppressing EPERM on startup when a pid has gone stale.
|
|
61
66
|
|
|
62
|
-
0.0.1
|
|
67
|
+
### 0.0.1
|
|
63
68
|
|
|
64
69
|
* Initial release.
|
|
@@ -12,7 +12,8 @@ module Gnome
|
|
|
12
12
|
PID_FILE = "#{CONFIG_DIR}/updater.pid"
|
|
13
13
|
LOG_FILE = "#{CONFIG_DIR}/updater.log"
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
AUTOSTART_DIR = "#{ENV['HOME']}/.config/autostart"
|
|
16
|
+
AUTOSTART = "#{AUTOSTART_DIR}/gnome-wallpaper-changer.desktop"
|
|
16
17
|
|
|
17
18
|
end
|
|
18
19
|
end
|
|
@@ -172,6 +172,7 @@ module Gnome::Wallpaper::Changer
|
|
|
172
172
|
Gem.bindir( Gem.dir ) + '/gnome-wallpaper-changer'
|
|
173
173
|
end
|
|
174
174
|
puts "Detected bin: #{bin}"
|
|
175
|
+
ensure_autostart_dir_exists
|
|
175
176
|
File.open AUTOSTART, "w" do |io|
|
|
176
177
|
io.puts "[Desktop Entry]"
|
|
177
178
|
io.puts "Type=Application"
|
|
@@ -192,6 +193,10 @@ module Gnome::Wallpaper::Changer
|
|
|
192
193
|
File.exists? AUTOSTART
|
|
193
194
|
end
|
|
194
195
|
|
|
196
|
+
def ensure_autostart_dir_exists
|
|
197
|
+
FileUtils.mkdir_p AUTOSTART_DIR unless File.exists?( AUTOSTART_DIR )
|
|
198
|
+
end
|
|
199
|
+
|
|
195
200
|
end
|
|
196
201
|
|
|
197
202
|
extend ClassMethods
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gnome-wallpaper-changer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2013-01-29 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: thin
|
|
@@ -106,7 +106,6 @@ files:
|
|
|
106
106
|
- Rakefile
|
|
107
107
|
- bin/gnome-wallpaper-changer
|
|
108
108
|
- gnome-wallpaper-changer.gemspec
|
|
109
|
-
- gnome-wallpaper-changer.sublime-project
|
|
110
109
|
- lib/gnome-wallpaper-changer.rb
|
|
111
110
|
- lib/gnome-wallpaper-changer/configuration.rb
|
|
112
111
|
- lib/gnome-wallpaper-changer/controller.rb
|
|
@@ -155,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
155
154
|
version: '0'
|
|
156
155
|
requirements: []
|
|
157
156
|
rubyforge_project:
|
|
158
|
-
rubygems_version: 1.8.
|
|
157
|
+
rubygems_version: 1.8.25
|
|
159
158
|
signing_key:
|
|
160
159
|
specification_version: 3
|
|
161
160
|
summary: A wallpaper rotation daemon with a browser-based interface.
|