Comments (6)
My minimal wrapper looks like this, it just swaps -e for -x:
#!/bin/sh
while [ "$1" ]; do
param=$1
shift
[ $param = '-e' ] && param='-x'
args="$args $param"
done
exec mate-terminal $args
This sample script might handle parameters with special characters badly, and it should be integrated into the Debian
/etc/alternatives system as well.
from mate-terminal.
I've written the wrapper in C as, unlike a shell, it does not mess with the special characters in the arguments. I don't really know the mate build system, so I've just simply compiled and installed it in /usr/bin. It works nicely.
#include <unistd.h>
#include <string.h>
int main(int argc, char *argv[])
{
int i;
argv[0] = "/usr/bin/mate-terminal";
for (i = 1; i < argc; ++i) {
if (strncmp(argv[i], "-e", 3) == 0) {
argv[i] = "-x";
}
}
execv(argv[0], argv);
return 1; /* if exec returns, it's an error, baby */
}
from mate-terminal.
There is an example here too:
http://ftp.de.debian.org/debian/pool/main/g/gnome-terminal/gnome-terminal_2.30.2-1.debian.tar.gz
see gnome-terminal.wrapper
from mate-terminal.
mate-terminal.wrapper added
from mate-terminal.
Thanks!
from mate-terminal.
Does this really have to be in Python?
and this wrapper is not needed on systems not using alternatives? what symlink actually points to this? can somebody show?
from mate-terminal.
Related Issues (20)
- mate-terminal on Wayland improperly sets $DISPLAY="wayland-0" HOT 8
- [Feature Request] Search all tabs and windows HOT 2
- Enabling / disabling the scrollbar in the profile causes column numbers to be off
- The cursor is not displayed while moving in the terminal HOT 1
- Visual artifacts in TerminalScreen widget when running under Mutter/GNOME Shell with transparent background HOT 4
- [Feature Request] Enable Resizing Exactly According to User-Specified Geometry
- [Feature Request] Set Title dialog: Accept input with Enter key HOT 5
- [Feature Request] double-click a tab to change its title HOT 1
- [Feature request]: Reload the settings when they are applied from the interactive shell like gnome-terminal
- [Feature request]: Increase the font-size from 10 to 12 HOT 6
- [Feature request]: Use bright background HOT 1
- [feature request]: Setting to always maximize the window
- Set Title dialog box appears when double-clicking in "tui" apps HOT 10
- Crash
- RFE: make a sound when a new line appears
- File URIs are wrongly entered when a file is pasted HOT 9
- in the "Define title" window, there is no default action when you press enter. HOT 2
- Copy coloured text and backgrounds to clipboard
- PR "terminal-window: Factor CSDs into geometry hints #452" seems to break some things for me HOT 10
- meson.build files are not in released 1.28 tarball generated with distcheck HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mate-terminal.