From: <dom...@us...> - 2013-04-08 17:00:23
|
Revision: 196 http://sourceforge.net/p/fvwm-crystal/code/196 Author: dominique_libre Date: 2013-04-08 17:00:20 +0000 (Mon, 08 Apr 2013) Log Message: ----------- silent the external applications that send junk (from Fvwm point of vue) at stderr Modified Paths: -------------- ChangeLog fvwm/components/functions/Exec-Accelerator Modified: ChangeLog =================================================================== --- ChangeLog 2013-04-08 16:38:07 UTC (rev 195) +++ ChangeLog 2013-04-08 17:00:20 UTC (rev 196) @@ -13,6 +13,8 @@ to reflect that change. Mass removingg of the fonts encoding; Crystal use Xft and it is better to use the user default config. + functions/Exec-Accelerator: silent the external applications that send + junk (from Fvwm point of vue) at stderr Dimanche 7 Avril 2013 Dominique Michel Modified: fvwm/components/functions/Exec-Accelerator =================================================================== --- fvwm/components/functions/Exec-Accelerator 2013-04-08 16:38:07 UTC (rev 195) +++ fvwm/components/functions/Exec-Accelerator 2013-04-08 17:00:20 UTC (rev 196) @@ -22,6 +22,10 @@ # AT # As 'A' function, but give a Title to the window terminal. +# C +# Launches a the fvwm console terminal with optional program as an argument. +# Terminal settings should be set using ~/.Xresources file or (in Eterm) theme file. + # X # Launches a command in the background. Typically this function is used to # launch some X application without additional terminal window. @@ -38,6 +42,11 @@ # it uses graphical client called 'gksudo' to execute a command. Unfortunately # this variant is only usable with graphical applications. +# To get all the junk from KDE and GTK applications +#InfoStoreAdd SILENT "" +# To not get that junk +InfoStoreAdd SILENT "2>/dev/null" + SetEnv DefaultTerminal NO_DEFAULT_TERMINAL_FOUND #FindCommand DefaultTerminal urxvt aterm xterm CheckPreferences DefaultTerminal "SavePreferences DefaultTerminal 'FindCommand DefaultTerminal urxvt aterm xterm'" @@ -47,35 +56,41 @@ DestroyFunc A AddToFunc A + I Window-SetPlacementPolicy -+ I Exec exec $[DefaultTerminal] -e $* ++ I Exec exec $[DefaultTerminal] -e $* $[infostore.SILENT] DestroyFunc AA AddToFunc AA + I Window-SetPlacementPolicy -+ I Exec exec $[DefaultTerminal] ++ I Exec exec $[DefaultTerminal] $[infostore.SILENT] # Usage: AT [title] [command] (Use quotes if you want command options or title with spaces) DestroyFunc AT AddToFunc AT + I Window-SetPlacementPolicy + I Test (!EnvMatch DefaultTerminal gnome-terminal, !EnvMatch DefaultTerminal multi-gnome-terminal, !EnvMatch DefaultTerminal terminator) Exec exec $[DefaultTerminal] -title $0 -e $1 -+ I TestRc (NoMatch) Exec exec $[DefaultTerminal] --title "$0" -e "$1" ++ I TestRc (NoMatch) Exec exec $[DefaultTerminal] --title "$0" -e "$1" $[infostore.SILENT] +# Usage: C [command] [command options] +DestroyFunc C +AddToFunc C ++ I Window-SetPlacementPolicy ++ I Exec exec $[FvwmConsoleTerminal] -e $* $[infostore.SILENT] + # Usage: X [command] [command options] DestroyFunc X AddToFunc X + I Window-SetPlacementPolicy -+ I Exec exec $* ++ I Exec exec $* $[infostore.SILENT] # Usage: S [command] [command options] DestroyFunc S AddToFunc S -+ I A sudo $* ++ I C sudo $* $[infostore.SILENT] # Usage: SX [command] DestroyFunc SX AddToFunc SX -+ I X gksudo $* ++ I X gksudo $* $[infostore.SILENT] # Dummy function created to avoid the error messages. # If the real function is used, this does nothing. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |