Commit Graph

288 Commits

Author SHA1 Message Date
Mihai Babiac
3245d671bb Add program_name to fix missing icons
By default, GTK sets the prgname to argv[0], which is then used to
choose the correct .desktop file. If the program is run through a
symlink, such as through `/etc/alternatives/x-terminal-emulator`,
argv[0] is not `terminator` so under Wayland the desktop file is not
detected, leading to a missing icon.
2022-07-29 18:49:16 +02:00
ozzdemir
e9e8d7be19 Better handling of GTK_IM_MODULE env var
Deleting env var only if it exists.
2022-01-28 08:00:22 +03:00
ozzdemir
1e8940039a Added hotfix for #78 that deletes GTK_IM_MODULE environment variable
Using this hotfix for a while, and no discrepancy observed. In order to
permanently(hopefully) fix the issue, commiting fix.
2022-01-27 00:20:56 +03:00
Matt Rose
f87c1f82ef don't traceback while searching through /proc 2021-12-01 20:33:30 -05:00
Matt Rose
cdb5755193 add a commandline flag to unhide any windows 2020-11-26 15:35:12 -05:00
Matt Rose
1d8a7f2b2f pass original working directory to dbus_options as well 2020-10-30 12:05:27 -04:00
David Levanon
f387f4886c set default profile from the json file 2020-09-24 15:19:58 +03:00
David Levanon
130b0a0af1 adding profile to the layout file
fix layout examples - adding profile

refactor - changing layoutfile to configjson
2020-09-21 01:02:19 +03:00
Matt Rose
75d68b8d2b move cmdline option conversion to dbus format to optionparse 2020-08-28 16:55:14 -04:00
Matt Rose
c04b6aeb87 move cmdline option conversion to dbus format to optionparse 2020-08-28 16:51:37 -04:00
Matt Rose
6738199e0f fix detection of whether or not ibus is running 2020-06-03 14:44:19 -04:00
Fernando Basso
83fac24938 Fix layout launcher error
‘LayoutLauncher’ needs to know the current working directory, which as
being passed as ‘None’ . This commit fixes it by setting the current
directory unconditionally so it is always available throughout the
application.
2020-05-06 12:58:47 -03:00
Markus Frosch
23135f2ca5 Fix shebang and executable flag for all scripts 2020-04-05 16:36:06 +02:00
Emilio Pozuelo Monfort
a3a67385fd Adopt patch "python3" from Debian
https://bugs.launchpad.net/terminator/+bug/1662544
2020-04-05 14:07:13 +02:00
Stephen Boddy
8f67c229b1 Fixes the cwd of a second instance launched by exo-open/Thunar 2017-02-06 08:43:44 +01:00
Stephen Boddy
da37f398fa Fix terminator not working with default python3 by forcing python2 2016-11-25 02:29:55 +01:00
Stephen Boddy
9f09d9c334 (trunk-1647) Fix for those not running IBus, where the IBus workaround caused broken keys in other keymaps set with non-IBus tools
(New dependancy added (python-psutil) for detecting the IBus process)
2015-11-30 21:54:23 +01:00
Stephen Boddy
4217a7308f Minor fixup for newer GI wanting us to specify versions 2015-11-07 01:15:46 +01:00
Stephen Boddy
7b769ae1d8 * Fix the DBus interface (gtk2-gtk3)
* Disable the wm_class feature. Seems not possible in GTK3, and breaks
  the DBus call for new_window.
(trunk-1651)
* As part of GTK3 fixup, some improvements to the DBus interface, and
  remotinator (Steve Boddy)
  * Can now open a window or tab using remotinator
  * Can get the window uuid, or title using remotinator
  * Moved new tab key handling into the terminal for consistency
  * Standardise response when a new term is created (split, win
    or tab) to reply with new terms uuid
  * For GTK3 gave the DBus a slightly different name so they it
    can run at same time as GTK2
  * remotinator now uses argparse for commandline option handling,
    vastly improving the option handling
  * remotinator help strings are translatable now
2015-09-19 05:25:25 +02:00
Stephen Boddy
b7b8888745 (trunk-1613) Fix launcher opening after a dbus enabled window is already open (DBUS in GTK3 still FIXME) 2015-09-01 22:59:36 +02:00
Stephen Boddy
e723f0df25 (trunk-1611) Fix composed characters when broadcast is turned on to appear in all receivers now (LP:#1463704) 2015-08-10 22:51:56 +02:00
Stephen Boddy
77bb9d5a3d (trunk-1570) Minor tweak to make the debugserver work with two or more -d flags, not three or more. 2015-07-02 21:26:50 +02:00
Stephen Boddy
387c403ec9 Temporary hard disablement of DBus till it can be fixed properly to work with GTK3 2015-02-25 15:26:17 +01:00
Stephen Boddy
22ed84abdd Apply terminator-gtk3-vte038-v4.patch from Egmont Koblinger 2014-09-19 16:10:43 +02:00
Stephen Boddy
7ca6dd96c6 Changes made by pygi-convert.sh 2014-09-19 16:08:08 +02:00
Stephen Boddy
e14cd19690 Initial cut of layout launcher. It 'aint pretty, but it works 2013-08-28 23:09:17 +02:00
Chris Jones
424c6e79cd Guard against people running us in deleted directories. Closes LP#1101208 2013-01-30 12:27:02 +00:00
Chris Jones
5d35c196c7 Add a command line option to spawn new tabs via DBus 2012-10-30 00:11:24 +00:00
f12f7e7b47 Added a little transformatios to make sure all the parameters of the config are
passed to string before calling the dbus method (integers for example).
2011-12-29 21:43:12 +01:00
abdcc0f201 Changed the dbus method new_window to use an array of options instead of only
passing the layout, also formatted a little the help strings in the optionparse 
module (to fit in 80 chars without breaking the indent)
2011-12-29 21:39:09 +01:00
d76b0dee7f Added a parameter to the dbus method new_window, to allow the passing of the
command to execute.
2011-12-29 20:02:11 +01:00
Chris Jones
007ca36723 Add dbus mechanism to obtain a list of terminals 2011-08-25 22:10:04 +01:00
Chris Jones
35842b6ff7 When creating a new window via dbus, pass on the layout request if there is one 2010-11-29 20:46:49 +00:00
Chris Jones
f20b437caf Allow disabling of dbus from the command line, and make use of that when spawning a new terminator process 2010-07-22 13:59:06 +01:00
Chris Jones
93104c42a2 Add debugging and hash the X11 display (suggestion from Andrea) 2010-07-22 09:24:47 +01:00
Chris Jones
9044ffabb0 Land a modified and extended patch from Andrea Corbellini that adds a dbus server and a new default behaviour to use the dbus server to make terminator processes singletons 2010-07-21 23:17:34 +01:00
Chris Jones
5b5739df0e Add some more debugging to layout creation 2010-06-15 15:19:05 +01:00
Chris Jones
682f0bd3f7 Apply some policy to the original cwd we inherit - if it's / then our parent process is probably some kind of app launcher, so we'll try to be helpful and make our cwd be ~ 2010-04-18 09:49:32 +01:00
Chris Jones
9b7fc5daa8 finally: is not py2.4 compatible 2010-04-06 00:05:20 +01:00
Chris Jones
16bc247b0e Attach the debug server to the context menu 2010-03-19 22:16:08 +00:00
Chris Jones
71919fce55 Create a layout if requested, otherwise create a default one or just open a window 2010-02-17 20:57:05 +01:00
Chris Jones
41a8b2372c Undo my madness 2010-02-05 00:16:24 +00:00
Chris Jones
882f325a73 Move all the layout stuff onto a separate branch so trunk can shape up for 0.90 2010-02-04 23:24:27 +00:00
Chris Jones
678057a0d3 First run at layout loading, creating, enumerating and saving. It sucks and works poorly at the moment, but here it is 2010-02-01 12:11:44 +00:00
Chris Jones
e3438b3bdf Fix up the startup cwd tracking so self-spawning works in non-absolute paths, and handle the key_new_window => key_new_terminator switch 2010-01-29 23:52:21 +00:00
Chris Jones
ece0cfdde0 Refactor the creation of a new Window/Terminal pair and joining them, into Terminator, and call it from the top level terminator script 2010-01-29 23:41:18 +00:00
Chris Jones
4d216633fc -d now automatically infers the Class::method in dbg(), and -d additionally adds a trailing (filename:line) item. debugserver is now moved to -ddd 2010-01-14 13:15:05 +00:00
Chris Jones
23f469add3 Fix up handle_size to work properly 2010-01-11 23:46:18 +00:00
Chris Jones
adfaf600fa Store the command line options in Config rather than overwriting parts of it, and passing them around 2010-01-11 20:56:30 +00:00
Chris Jones
96ad941267 Clear up pyflakes errata and switch newterminator to terminator 2010-01-11 20:11:35 +00:00