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 CHANGED
@@ -1 +1 @@
1
- 0.0.12
1
+ 0.0.13
@@ -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
- if File.exists?(CONFIG[:run_path])
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{openall_time_applet}
8
- s.version = "0.0.12"
8
+ s.version = "0.0.13"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kasper Johansen"]
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.12
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: 2134031448071051365
201
+ hash: -1145834999910366714
202
202
  segments:
203
203
  - 0
204
204
  version: "0"