Menu

#2 run shell commands on timer stop/start

closed
None
5
2002-12-27
2002-10-16
No

I'm looking into integrating GnoTime with Journyx
Timesheet, and the one feature that would make
integration a cinch that (as far as I can see) GnoTime
doesn't have is the ability to run shell commands when
a project timer is stopped and started. GTT could run
shell commands when a project was selected or
deselected, and from the documentation that was the
case up to gnome-utils 1.4, but I haven't been able to
find a facility to run shell commands when a timer is
stopped or started.

Actually, all I would need is a command when the timer
is stopped that allows me to include a couple things in
the command line: time since the timer was started,
project name, and a comment.

Thanks.

Discussion

  • Linas Vepstas

    Linas Vepstas - 2002-11-07

    Logged In: YES
    user_id=11545

    Under the settings-preferences menu, go to the 'shell' tab.
    The boxes are labelled "switch project" and "no project",
    but its actually the same as start and stop.
    Unfortunately, there is nothing in there to pass the name
    of the project to the command ...

    A suggested design for doing this would be good

     
  • Linas Vepstas

    Linas Vepstas - 2002-12-27

    Logged In: YES
    user_id=11545

    Yes, I agree, the old gtt select/unselect shell commands were
    broken. I just fixed this in cvs, so that there is a start project
    and a stop-project shell command. (set these in the 'properties'
    dialog). It will be a part of the gnotime-2.1.2 file release.

    %t substitutes the project title
    %d description
    %D a numeric id for the project
    %T total time ever on the project
    %H %M %S total hours minutes seconds today
    %h %m %s total hours minutes secons ever
    (which is the same % things as before)

    p.s. ignore my November note on this feature,
    it is completely wrong. My brain must have
    stopped that day.

     
  • Linas Vepstas

    Linas Vepstas - 2002-12-27
    • milestone: --> Next_Release_(example)
    • assigned_to: nobody --> linas
    • status: open --> closed
     

Log in to post a comment.