You are here

Workrave Portable 1.8.4

43 posts / 0 new
Last post
tanisthalon
tanisthalon's picture
Offline
Last seen: 3 years 10 months ago
Developer
Joined: 2006-02-11 08:02
Workrave Portable 1.8.4

I have created a portable version of Workrave that is ready for some testing. Workrave is a program that assists in the recovery and prevention of Repetitive Strain Injury (RSI). The program frequently alerts you to take micro-pauses, rest breaks and restricts you to your daily limit.

I came across this the other day by accident. Definitely a nice little program to remind me to rest etc whilst I am at work busying away on the keyboard.

The self extracting archive can be downloaded from its current location.

The download link (5.32 MB):

Workrave Portable 1.8.4 (No longer supported)

Test 2 (25/02/07 @ 15:03 GMT) - Corrects registry, Data files may need to be looked at still. Any feedback/script corrections are welcome.

Test 3 (27/02/07 @ 19:42 GMT) - Profiles and last bit of registry all cleaned up.

Test 4 (28/02/07 @ 21:01 GMT) - Adjusted nsi script a little for Current User.

Test 5 (10/04/07 @ 22:11 GMT) - (Had a spare few minutes after Galactica finished) Updated file set to 1.8.4 & added the .ini file as suggested by Jose Pinto, based on the additional documentation in the installation files.

Updated 28/05/07 - Moved from beta testing

Regards,
tanisthalon
___

Visualize the possibilities!

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 1 month ago
Joined: 2006-01-06 21:27
Aaah!

Stop releasing apps!
I haven't even got them all up yet!
Anyway, good job since I use(d to use) Workrave.
----
Ryan McCue
Person 1: Oh my god. You will never believe what just happened.
Person 2: What?
Person 1: I can't remember, I've forgotten.

"If you're not part of the solution, you're part of the precipitate."

Simeon
Simeon's picture
Offline
Last seen: 10 years 3 weeks ago
DeveloperTranslator
Joined: 2006-09-25 15:15
But

It leaves a lot of registry entries and stores the data in the folder where the launcher is.

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

tanisthalon
tanisthalon's picture
Offline
Last seen: 3 years 10 months ago
Developer
Joined: 2006-02-11 08:02
Test 2

Uploaded Test 2 for testing. Corrected the registry which for some bizarre reason I thought I had done. The data files may need to be looked at.

Another GTK based application I am looking at leaves a file within the C:\Documents and Settings\xxxxx which I, as yet need to extract/reinstate and delete on closure. Any feedback on the nsi script to control this based on John's nsi script will be even more welcome.
___

Visualize the possibilities!

Dell XPS M1530 Laptop
Intel Core 2 Duo T9300 2.5GHz
4GB Ram
256MB GeForce 8600M GT

Simeon
Simeon's picture
Offline
Last seen: 10 years 3 weeks ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Cool

I just tested version 2.
You might wanna add the following registry keys:

HKU\S-1-5-21-1801674531-527237240-725345543-1003\AppEvents\EventLabels\WorkraveBreakIgnored
HKU\S-1-5-21-1801674531-527237240-725345543-1003\AppEvents\EventLabels\WorkraveBreakPrelude
HKU\S-1-5-21-1801674531-527237240-725345543-1003\AppEvents\EventLabels\WorkraveDailyLimit
HKU\S-1-5-21-1801674531-527237240-725345543-1003\AppEvents\EventLabels\WorkraveExerciseEnded
HKU\S-1-5-21-1801674531-527237240-725345543-1003\AppEvents\EventLabels\WorkraveExercisesEnded
HKU\S-1-5-21-1801674531-527237240-725345543-1003\AppEvents\EventLabels\WorkraveMicroBreakEnded
HKU\S-1-5-21-1801674531-527237240-725345543-1003\AppEvents\EventLabels\WorkraveMicroBreakStarted
HKU\S-1-5-21-1801674531-527237240-725345543-1003\AppEvents\EventLabels\WorkraveRestBreakEnded
HKU\S-1-5-21-1801674531-527237240-725345543-1003\AppEvents\EventLabels\WorkraveRestBreakStarted
HKU\S-1-5-21-1801674531-527237240-725345543-1003\AppEvents\Schemes\Apps\Workrave

and now, in the second version, the setting-files are left in
D:\Dokumente und Einstellungen\(username)\Anwendungsdaten\Workrave\
which is the same as
%appdata%\workrave\

In this folder, there are 4 files:
idlelog.log
idlelog.idx
state
todaystats

Johm uses the following commands to clean the Abiword folder:

;=== Cleanup settings
	CopyFiles "$USERPROFILEPATH\AbiSuite\custom.dic" "$SETTINGSDIRECTORY\"
	Delete "$USERPROFILEPATH\AbiSuite\custom.dic"
	RMDir "$USERPROFILEPATH\AbiSuite\" ;=== Will only delete if empty (no /r switch)

So maybe we use

CopyFiles "$APPDATA\workrave\idlelog.log" "$SETTINGSDIRECTORY\"
CopyFiles "$APPDATA\workrave\idlelog.idx" "$SETTINGSDIRECTORY\"
CopyFiles "$APPDATA\workrave\state" "$SETTINGSDIRECTORY\"
CopyFiles "$APPDATA\workrave\todaystats" "$SETTINGSDIRECTORY\"
Delete "$APPDATA\workrave\idlelog.log"
Delete "$APPDATA\workrave\idlelog.idx"
Delete "$APPDATA\workrave\state"
Delete "$APPDATA\workrave\todaystats"
RMDir "$APPDATA\workrave\" ;=== Will only delete if empty (no /r switch)

We just have to make the program use the settings at the beginning.

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

tanisthalon
tanisthalon's picture
Offline
Last seen: 3 years 10 months ago
Developer
Joined: 2006-02-11 08:02
Code works well...

Changed the file to
CopyFiles "$APPDATA\workrave\idlelog..log" "$SETTINGSDIRECTORY\"
and
Delete "$APPDATA\workrave\idlelog..log"
as it would not transfer or delete the folder after closure.

That takes care of those files just to tidy up the last of the registry. This little exercise will help out with the other application that I had mentioned.

I will post the Test 3 update on Tuesday.
___

Visualize the possibilities!

Dell XPS M1530 Laptop
Intel Core 2 Duo T9300 2.5GHz
4GB Ram
256MB GeForce 8600M GT

Simeon
Simeon's picture
Offline
Last seen: 10 years 3 weeks ago
DeveloperTranslator
Joined: 2006-09-25 15:15
I believe

you thought about copying them back at the beginning and (if necessary) backup eventually existing files with the same name from a local install first?

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

tanisthalon
tanisthalon's picture
Offline
Last seen: 3 years 10 months ago
Developer
Joined: 2006-02-11 08:02
Test 3

Latest test release has been uploaded. If there is anything awry or any recommended script alterations/additions, then please let me know.
___

Visualize the possibilities!

Dell XPS M1530 Laptop
Intel Core 2 Duo T9300 2.5GHz
4GB Ram
256MB GeForce 8600M GT

Simeon
Simeon's picture
Offline
Last seen: 10 years 3 weeks ago
DeveloperTranslator
Joined: 2006-09-25 15:15
cool

Sorry for not mentioning earlier:
You have to change all the

HKU\S-1-5-21-1801674531-527237240-725345543-1003\

to

HKEY_Cuerrent_User

(HKCU or something like that)
The S-1-5-21-1801674531-527237240-725345543-1003 is different on every PC but means the same as HKEY_CURRENT_USER.

And it doesnt save the settings from the portable Workrave into a file and restores them before launching again. Is this possible to achieve?

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

tanisthalon
tanisthalon's picture
Offline
Last seen: 3 years 10 months ago
Developer
Joined: 2006-02-11 08:02
Test 4

Altered to Current User. Not sure on the restoring previous settings. Hopefully someone else can advise and this will be totally complete. Otherwise we'll have to do without a history of use.
___

Visualize the possibilities!

Dell XPS M1530 Laptop
Intel Core 2 Duo T9300 2.5GHz
4GB Ram
256MB GeForce 8600M GT

Simeon
Simeon's picture
Offline
Last seen: 10 years 3 weeks ago
DeveloperTranslator
Joined: 2006-09-25 15:15
backup

I'm trying to make a version that takes care of a local install (backing up the local reg keys...).
What is a better method to back up reg keys:
Put them in a .reg file in the temp dir or renaming them???

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

tanisthalon
tanisthalon's picture
Offline
Last seen: 3 years 10 months ago
Developer
Joined: 2006-02-11 08:02
_portable & _local maybe

I believe renaming them to something like local then reinstating them under their correct name at closure.
___

Visualize the possibilities!

Dell XPS M1530 Laptop
Intel Core 2 Duo T9300 2.5GHz
4GB Ram
256MB GeForce 8600M GT

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 1 month ago
Joined: 2006-01-06 21:27
Do what John does

Rename the entries from Whatever to Whatever-BackupByWhateverPortable
----
Ryan McCue
Current Fav. Songs:

  • Ballroom Blitz - The Misfits
  • Manic Monday - Cyndi Lauper
  • I Don't Like Mondays - The Boomtown Rats

"If you're not part of the solution, you're part of the precipitate."

Simeon
Simeon's picture
Offline
Last seen: 10 years 3 weeks ago
DeveloperTranslator
Joined: 2006-09-25 15:15
reg file

I now export them to a reg file. Lets see if it works...

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

Simeon
Simeon's picture
Offline
Last seen: 10 years 3 weeks ago
DeveloperTranslator
Joined: 2006-09-25 15:15
@Ryan (or anyone else who knows NSIS)

In NSIS, is $APPDATA the same as %APPDATA% ?

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

tanisthalon
tanisthalon's picture
Offline
Last seen: 3 years 10 months ago
Developer
Joined: 2006-02-11 08:02
I believe so

Yes I believe it is, although I am quite new to all things nsi and such.
___

Visualize the possibilities!

Dell XPS M1530 Laptop
Intel Core 2 Duo T9300 2.5GHz
4GB Ram
256MB GeForce 8600M GT

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 1 month ago
Developer
Joined: 2005-12-10 15:22
Well,

I think that %APPDATA% points directly to the Windows environment variable, and $APPDATA is an NSIS function that reads the afore mentioned environment variable.

Yours

Steve Lamerton

My Blog

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 1 month ago
Joined: 2006-01-06 21:27
Correct

NSIS read the $APPDATA variable from Windows, so yes it's the same.
----
Ryan McCue
Current Fav. Songs:

  • Ballroom Blitz - The Misfits
  • Manic Monday - Cyndi Lauper
  • I Don't Like Mondays - The Boomtown Rats

"If you're not part of the solution, you're part of the precipitate."

Simeon
Simeon's picture
Offline
Last seen: 10 years 3 weeks ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Thanks

for your replies.
If I find a windows PC to compile it and test it a little bit, I plan to put the source code of the Launcher in the pastebin for you folks to take a look at it.
BTW, is there a NSIS compiler for Linux?

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

Simeon
Simeon's picture
Offline
Last seen: 10 years 3 weeks ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Here it is

http://portableapps.pastebin.com/897018
I haven't been able to make it use the last settings although it copies them to %APPDATA%/workrave/ and saves them to the settings folder afterwards.
Maybe someone else can help...
Any thoughts/hints/errors/help/advise is welcome.;-)

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 1 month ago
Joined: 2006-01-06 21:27
Easy

You have to use $APPDATA Biggrin
----
Ryan McCue
Current Fav. Songs:

  • Ballroom Blitz - The Misfits
  • Manic Monday - Cyndi Lauper
  • I Don't Like Mondays - The Boomtown Rats

"If you're not part of the solution, you're part of the precipitate."

Simeon
Simeon's picture
Offline
Last seen: 10 years 3 weeks ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Another version

http://portableapps.pastebin.com/897601
Thanks Ryan Wink
I changed the handling of the copies a bit (It now copies the whole folder instead of each file one by one) and corrected the script with Ryans suggestions (Is "with" the correct word for this??? Dunno).
But the settings are not being remembered.
Maybe Ill write a mail to the authors of the program whether they could add a setting file. Would be easier...

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

tanisthalon
tanisthalon's picture
Offline
Last seen: 3 years 10 months ago
Developer
Joined: 2006-02-11 08:02
Simeon

Have you got any further with getting the history to work correctly?

I haven't had time to look further into it and probably will not be able to for a while as I am extremely busy with work commitments at the moment.
___

Visualize the possibilities!

Dell XPS M1530 Laptop
Intel Core 2 Duo T9300 2.5GHz
4GB Ram
256MB GeForce 8600M GT

Simeon
Simeon's picture
Offline
Last seen: 10 years 3 weeks ago
DeveloperTranslator
Joined: 2006-09-25 15:15
No

I mailed to the dev of the app but till now I didnt get any answer.
I too have some things to do other than this but I'd like to see this App being portabalised. Then I guess we put the project "on hold" till one of us (or both) has time to spend on it.

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

Kevin Porter
Kevin Porter's picture
Offline
Last seen: 10 years 8 months ago
Developer
Joined: 2007-01-10 19:25
Great. I should probably

Great. I should probably use this, considering the amount of time I spend on the computer :smile:.

Kevin Porter
To us also, through every star, through every blade of grass, is not God made visible if we will open our minds and our eyes.
--Thomas Carlyle

-Please search before posting

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

josepinto
Offline
Last seen: 11 years 9 months ago
Joined: 2006-08-28 12:22
It is already portable

Hi,

Workrave can already be made portable.
Download default installation and follow these steps:

1. Support for storing configuration in a .ini file
This feature can be enabled by creating an empty 'workrave.ini'
file in '~/.workrave' (on Unix) or in 'c:\Program files\Workrave\etc'
(on Window, assuming Workrave is installed in this directory;
2. Support for configuring the data storage directory.
Add the following two lines to your workrave.ini
[general]
datadir=.\\Workrave\\Data
This feature can be used to run Workrave from an USB memory stick. The datadir configuration can only be a relative path on version 1.8.4.

These instructions were taken (and edited) from the file "News" on the Workrave main directory.

Cheers,

José Pinto
Portugal

tanisthalon
tanisthalon's picture
Offline
Last seen: 3 years 10 months ago
Developer
Joined: 2006-02-11 08:02
Thanks

Thanks for the pointer. Works well, I have tested it with 1.8.4 instead which seems to work barring it leaves a Workrave folder in the AppData menu for which I shall use the launcher script to delete on closure as previous. Checked a couple of times and the history for statistics works correctly.

If I get chance at the weekend I will post a new beta for testing, just to check before a release.

Edit: 22:16
Updated the download link. Hopefully it works correctly. Please check it runs even if there is a version on the pc and that it doesn't mess up the host files. The script will delete the Workrave AppData file if empty only. The portable version writes directly to the portable folder. As previous the script takes care of the registry also.
___

Visualize the possibilities!

Dell XPS M1530 Laptop
Intel Core 2 Duo T9300 2.5GHz
4GB Ram
256MB GeForce 8600M GT

ZachHudock
ZachHudock's picture
Offline
Last seen: 1 year 10 months ago
Developer
Joined: 2006-12-06 18:07
I get "Error, page not

I get "Error, page not found"

The developer formerly known as ZGitRDun8705

tanisthalon
tanisthalon's picture
Offline
Last seen: 3 years 10 months ago
Developer
Joined: 2006-02-11 08:02
Try again

Please try again its just been uploaded.
___

Visualize the possibilities!

Dell XPS M1530 Laptop
Intel Core 2 Duo T9300 2.5GHz
4GB Ram
256MB GeForce 8600M GT

ZachHudock
ZachHudock's picture
Offline
Last seen: 1 year 10 months ago
Developer
Joined: 2006-12-06 18:07
cool beans...works great

cool beans...works great

The developer formerly known as ZGitRDun8705

josepinto
Offline
Last seen: 11 years 9 months ago
Joined: 2006-08-28 12:22
Compress using UPX?

Works fine here.

One sugestion, though.
Can you compress the exe and all dll's using UPX?
I did it in my copy and works fine, without visible delay.

Cheers

tanisthalon
tanisthalon's picture
Offline
Last seen: 3 years 10 months ago
Developer
Joined: 2006-02-11 08:02
It will be UPXd

I will do when I move it from Beta Testing
___

Visualize the possibilities!

Dell XPS M1530 Laptop
Intel Core 2 Duo T9300 2.5GHz
4GB Ram
256MB GeForce 8600M GT

Patrick Patience
Offline
Last seen: 4 years 10 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
tanisthalon.

You seem to pick great apps, along with John of course, I personally only like to use your apps, and John's.

And, erm, Ryan's... Blum

But anyways, can you recommended a good program for me to take a shot at making portable? Because you seem to pick the best ones. Biggrin

Thanks.
_____________________________
I felt so different without a signature.

tanisthalon
tanisthalon's picture
Offline
Last seen: 3 years 10 months ago
Developer
Joined: 2006-02-11 08:02
LMAO

I will have a look at what I have kicking around that I cannot get any time with and let you know etc. Still at work so it will be a good few hours yet before I respond.

Oh and thanks for the compliment.
___

Visualize the possibilities!

Dell XPS M1530 Laptop
Intel Core 2 Duo T9300 2.5GHz
4GB Ram
256MB GeForce 8600M GT

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 1 month ago
Joined: 2006-01-06 21:27
.

*cries* Blum
----
Ryan McCue.
Blog.
So all that Airbus-delay trouble over here in Europe is because of YOU!
Simeon.

"If you're not part of the solution, you're part of the precipitate."

tanisthalon
tanisthalon's picture
Offline
Last seen: 3 years 10 months ago
Developer
Joined: 2006-02-11 08:02
Apps

I believe that the following would attract interest:

Battle of Wesnoth, http://www.wesnoth.org/home, is one that many people would love to have in paf format. I have played it in the past and really enjoyed it.

Another game of sorts (you need your own wads or demo wads from demo downloads etc) is jDoom aka Doomsday and also Snowberry now I believe, http://www.doomsdayhq.com/. Anyways that would definately be a good one.

You have a few emulators too like zsnes http://www.zsnes.com/, ScummVM http://www.scummvm.org/ or even a launcher for the likes of pSX emulator http://psxemulator.gazaxian.com/.

I think someone is already working on a paf version of MediaCoder, http://mediacoder.sourceforge.net/index.htm, somewhere here on the forums. If not, it has potential.

As you may of guessed, I was thinking of a games section for my site and a contribution to the paf format before I got too busy. Well that should get you going for now.

P.S. You could always look into Celestia, http://www.shatters.net/celestia/ to offer as an alternative to Stellarium!
___

Visualize the possibilities!

Dell XPS M1530 Laptop
Intel Core 2 Duo T9300 2.5GHz
4GB Ram
256MB GeForce 8600M GT

Patrick Patience
Offline
Last seen: 4 years 10 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Thanks!

I was thinking about Media Coder a few days ago, but decided against it, I did think about ZNES as well, I may do that one. I will check into Celestia as well.

Any suggestions in the "Office" category?

_____________________________
I felt so different without a signature.

horusofoz
horusofoz's picture
Offline
Last seen: 1 year 2 months ago
Joined: 2008-04-03 22:45
Please update

Please update and link id down Cry

PortableApps.com Advocate

tanisthalon
tanisthalon's picture
Offline
Last seen: 3 years 10 months ago
Developer
Joined: 2006-02-11 08:02
No longer supported

I no longer support this app due to timing issues. I believe you can still get it from here Cubegames

Dell XPS M1530 Laptop
Intel Core 2 Duo T9300 2.5GHz
4GB Ram
256MB GeForce 8600M GT

AtmanActive
AtmanActive's picture
Offline
Last seen: 13 years 9 months ago
Joined: 2010-01-25 06:27
Workrave Portable v1.9.1

Workrave Portable v1.9.1

Using info from Josepinto (here) and DeadSoul's Launcher.

Download here

Enjoy!

horusofoz
horusofoz's picture
Offline
Last seen: 1 year 2 months ago
Joined: 2008-04-03 22:45
PAF Please

No offense but I think I need an actual PAF to feel safe rather than something created using DeadSoul's Launcher.

If anyone is willing to create this in PAF I'd happily test it Smile

PortableApps.com Advocate

Antony Murste
Offline
Last seen: 5 years 9 months ago
Joined: 2017-12-02 01:08
Feedback

Workrave 1.10 does not work if there are russian characters in a path.

John T. Haller
John T. Haller's picture
Offline
Last seen: 5 hours 26 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Workrave Itself

Workrave itself can't handle running from a path that isn't just ANSI characters. You'll have to run it from another location.

Sometimes, the impossible can become possible, if you're awesome!

Log in or register to post comments