Merge branch 'belenos' into 'belenos'
Belenos I've encountered a problem when I tried to create a configuration file on my home directory. When I tried to execute the "compton-launcher" it didn't launch compton but the following message appeared: parse_config(): Failed to read configuration file "~/.config/compton.conf Replacing "~" with the environment variable "HOME" solved the problem. See merge request !52
This commit is contained in:
commit
5be1bb7351
1 changed files with 3 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# Copyright (C) 2011 Rubén Rodríguez <ruben@trisquel.info>
|
# Copyright (C) 2011 Rubén Rodríguez <ruben@trisquel.info>
|
||||||
|
# Copyright (C) 2015 Francisco Parra <franparpe@openmailbox.org>
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
|
@ -46,10 +47,10 @@ cat << EOF > compton-launcher
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
[ \$DESKTOP_SESSION = "trisquel-session" ] || exit 0
|
[ \$DESKTOP_SESSION = "trisquel-session" ] || exit 0
|
||||||
[ -f ~/.config/disable-compton ] && exit 0
|
[ -f $HOME/.config/disable-compton ] && exit 0
|
||||||
|
|
||||||
FILE=/etc/compton.conf
|
FILE=/etc/compton.conf
|
||||||
[ -f ~/.config/compton.conf ] && FILE="~/.config/compton.conf"
|
[ -f $HOME/.config/compton.conf ] && FILE="$HOME/.config/compton.conf"
|
||||||
|
|
||||||
[ 0 != \$(glxinfo |grep "renderer string:" |grep -v llvmpipe | wc -c) ] && exec compton --config \$FILE &
|
[ 0 != \$(glxinfo |grep "renderer string:" |grep -v llvmpipe | wc -c) ] && exec compton --config \$FILE &
|
||||||
EOF
|
EOF
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue