x-terminal-emulator being launched with incorrect parameters

Bug #592552 reported by Federico Ceratto
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GTimeLog
Fix Released
Medium
Unassigned

Bug Description

Hello and thanks for your nice time tracker.

On my Debian systems I use terminator as my default terminal:

$ ls -la /usr/bin/x-terminal-emulator
lrwxrwxrwx 1 root root 37 May 14 2008 /usr/bin/x-terminal-emulator -> /etc/alternatives/x-terminal-emulator
$ ls -la /etc/alternatives/x-terminal-emulator
lrwxrwxrwx. 1 root root 19 May 28 2009 /etc/alternatives/x-terminal-emulator -> /usr/bin/terminator

When I try to generate a report terminator is being run and it quits producing the following error:

$ x-terminal-emulator -e mutt -H /tmp/tmpdk3VGLgtimelog
Usage: x-terminal-emulator [options]

x-terminal-emulator: error: Additional unexpected arguments found: ['/tmp/tmpdk3VGLgtimelog']

GTimeLog is making assumptions on how x-terminal-emulator handle parameters.

The fix, for terminator, is very simple - just add some quoting:

x-terminal-emulator -e "mutt -H /tmp/tmpdk3VGLgtimelog"

Thanks

summary: - x-terminal-emulator being lunched with incorrect parameters
+ x-terminal-emulator being launched with incorrect parameters
Changed in gtimelog:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Marius Gedminas (mgedmin) wrote :

Fixed in trunk.

Note that the command passed to x-terminal-emulator is stored in ~/.gtimelog/gtimelogrc and GTimeLog won't change existing config files. The fix I committed makes GTimeLog write the correct version when it creates the config file on first run. You'll have to make the change yourself if you already have a gtimelogrc.

Changed in gtimelog:
status: Triaged → Fix Committed
Changed in gtimelog:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.