openall_time_applet 0.0.12 → 0.0.13
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/VERSION +1 -1
- data/lib/openall_time_applet.rb +4 -1
- data/openall_time_applet.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.13
|
data/lib/openall_time_applet.rb
CHANGED
@@ -118,7 +118,8 @@ class Openall_time_applet
|
|
118
118
|
|
119
119
|
#Creates a runfile or sending a command to the running OpenAll-Time-Applet through the Unix-socket.
|
120
120
|
def check_runfile_and_cmds
|
121
|
-
|
121
|
+
#If run-file exists and the PID within is still running, then send command (if given) and exit.
|
122
|
+
if File.exists?(CONFIG[:run_path]) and Knj::Unix_proc.pid_running?(File.read(CONFIG[:run_path]).to_i)
|
122
123
|
cmd = nil
|
123
124
|
ARGV.each do |val|
|
124
125
|
if match = val.match(/^--cmd=(.+)$/)
|
@@ -302,6 +303,8 @@ class Openall_time_applet
|
|
302
303
|
sleep 1 if !block_given?
|
303
304
|
yield if block_given?
|
304
305
|
rescue => e
|
306
|
+
sw.destroy
|
307
|
+
sw = nil
|
305
308
|
Knj::Gtk2.msgbox("msg" => Knj::Errors.error_str(e), "type" => "warning", "title" => _("Error"), "run" => false)
|
306
309
|
ensure
|
307
310
|
sw.destroy if sw
|
data/openall_time_applet.gemspec
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: openall_time_applet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.13
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Kasper Johansen
|
@@ -198,7 +198,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
198
198
|
requirements:
|
199
199
|
- - ">="
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
hash:
|
201
|
+
hash: -1145834999910366714
|
202
202
|
segments:
|
203
203
|
- 0
|
204
204
|
version: "0"
|