em: supprimer la sortie d'erreur par défaut. rendre configurable la géométrie
This commit is contained in:
		
							parent
							
								
									489b31ded9
								
							
						
					
					
						commit
						528a281e30
					
				
							
								
								
									
										10
									
								
								em
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								em
									
									
									
									
									
								
							@ -1,13 +1,19 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
 | 
			
		||||
 | 
			
		||||
EMACS_GEOMETRY=150x50+0+67
 | 
			
		||||
: "${EM_GEOMETRY:=150x50+0+67}" "${EM_STDERR:=}"
 | 
			
		||||
 | 
			
		||||
# Essayer avec emacs
 | 
			
		||||
emacs="$(which emacs 2>/dev/null)"
 | 
			
		||||
if [ -x "$emacs" ]; then
 | 
			
		||||
    if [ -n "$DISPLAY" ]; then
 | 
			
		||||
        exec "$emacs" -g "$EMACS_GEOMETRY" "$@" &
 | 
			
		||||
        if [ -n "$EM_STDERR" ]; then
 | 
			
		||||
            # ne pas supprimer la sortie erreur
 | 
			
		||||
            exec "$emacs" -g "$EM_GEOMETRY" "$@" &
 | 
			
		||||
        else
 | 
			
		||||
            # supprimer la sortie d'erreur. les warnings de GTK sont horripilants
 | 
			
		||||
            exec "$emacs" -g "$EM_GEOMETRY" "$@" 2>/dev/null &
 | 
			
		||||
        fi
 | 
			
		||||
        exit 0
 | 
			
		||||
    else
 | 
			
		||||
        exec "$emacs" -nw "$@"
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user