(trunk-1628) Adjustment to the way alternatives are set up that should cure blurry/incorrect icons in task switchers

This commit is contained in:
Stephen Boddy 2015-09-01 23:22:03 +02:00
parent 93ca226c67
commit 06a2d5426f
4 changed files with 11 additions and 1 deletions

View File

@ -1,9 +1,12 @@
#!/bin/sh -e #!/bin/sh -e
if [ "$1" = "configure" ]; then if [ "$1" = "configure" ]; then
# Ensure the old alternative is removed
update-alternatives --remove terminator /usr/bin/terminator || true
update-alternatives --remove x-terminal-emulator /usr/bin/terminator
# Add an alternative for x-terminal-emulator # Add an alternative for x-terminal-emulator
update-alternatives --install /usr/bin/x-terminal-emulator \ update-alternatives --install /usr/bin/x-terminal-emulator \
x-terminal-emulator /usr/bin/terminator 50 \ x-terminal-emulator /usr/bin/terminator.wrapper 50 \
--slave /usr/share/man/man1/x-terminal-emulator.1.gz \ --slave /usr/share/man/man1/x-terminal-emulator.1.gz \
x-terminal-emulator.1.gz /usr/share/man/man1/terminator.1.gz x-terminal-emulator.1.gz /usr/share/man/man1/terminator.1.gz
fi fi

View File

@ -3,6 +3,8 @@
if [ "$1" = remove ]; then if [ "$1" = remove ]; then
update-alternatives --remove terminator /usr/bin/terminator || true update-alternatives --remove terminator /usr/bin/terminator || true
update-alternatives --remove x-terminal-emulator /usr/bin/terminator update-alternatives --remove x-terminal-emulator /usr/bin/terminator
update-alternatives --remove terminator.wrapper /usr/bin/terminator.wrapper || true
update-alternatives --remove x-terminal-emulator /usr/bin/terminator.wrapper
fi fi
#DEBHELPER# #DEBHELPER#

View File

@ -219,6 +219,7 @@ setup(name=APP_NAME.capitalize(),
license='GNU GPL v2', license='GNU GPL v2',
scripts=['terminator', 'remotinator'], scripts=['terminator', 'remotinator'],
data_files=[ data_files=[
('bin', ['terminator.wrapper']),
('share/appdata', ['data/terminator.appdata.xml']), ('share/appdata', ['data/terminator.appdata.xml']),
('share/applications', ['data/terminator.desktop']), ('share/applications', ['data/terminator.desktop']),
(os.path.join(man_dir, 'man1'), ['doc/terminator.1']), (os.path.join(man_dir, 'man1'), ['doc/terminator.1']),

4
terminator.wrapper Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
terminator $@