Compare commits

...

2 Commits

Author SHA1 Message Date
a-Sansara
13f454d157 update default [Cron]time value in praytime.ini to prevent DST change 2017-11-18 15:43:21 +01:00
a-Sansara
4960e2f5ff bugfix retriew username in praytime cron via crontab 2017-11-18 15:27:35 +01:00
4 changed files with 6 additions and 3 deletions

View File

@ -77,7 +77,7 @@ isha =
[Cron]
# timings updating time
time = 00:00
time = 02:22
```
## Usage

View File

@ -29,4 +29,4 @@ isha =
[Cron]
# timings updating time
time = 00:00
time = 02:22

View File

@ -7,7 +7,7 @@ json_dep = dependency('json-glib-1.0')
gstreamer_dep = dependency('gstreamer-1.0')
echo_dep = dependency('pluie-echo-0.2')
version = '0.2.5'
version = '0.2.6'
bindir = join_paths(get_option('prefix'), get_option('bindir'))
datadir = join_paths(get_option('prefix'), get_option('datadir'), 'praytime')

View File

@ -272,6 +272,9 @@ class Pluie.PrayTime : GLib.Object
if (user == null) {
user = Environment.get_variable ("USER");
}
if (user == null) {
user = Environment.get_variable ("LOGNAME");
}
Dbg.out (Log.METHOD, null, Log.LINE, Log.FILE);
return user;
}