Launching Apps to different desktops
I need to write a bash script that launches several tasks. Two of the tasks are gui based. One needs to run in the current desktop, while the other in an alternate desktop of choice. Any clues? System: Red Hat Enterprise 4. Thanks, HandyAndy0 -- View this message in context: http://www.nabble.com/Launching-Apps-to-different-desktops-tp15345327p15345327.html Sent from the Gnu - Bash mailing list archive at Nabble.com.
Quoted regexp not matching string
Configuration Information [Automatically generated, do not change]: Machine: i486 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -I. -I../bash -I../bash/include -I../bash/lib -g -O2 -Wall uname output: Linux pravetz 2.6.22-14-generic #1 SMP Fri Feb 1 04:59:50 UTC 2008 i686 GNU/Linux Machine Type: i486-pc-linux-gnu Bash Version: 3.2 Patch Level: 33 Release Status: release Description: If a regular expression is quoted, it won't match the string. This is a change in behavior from 3.1.0 to 3.2.0. It is still present in 3.2.33. Repeat-By: Execute: $ test="target/test"; [[ $test =~ "^target/" ]] && echo yes It returns 'yes' in bash 3.1.0 and nothing in 3.2.x Unquoted regexps do work in bash 3.1.0 and 3.2.x: $ test="target/test"; [[ $test =~ ^target/ ]] && echo yes It returns 'yes' in bash 3.1.0 and 3.2.x
Re: Launching Apps to different desktops
On Thu, Feb 07, 2008 at 02:39:31PM -0800, HandyAndy0 wrote: > > I need to write a bash script that launches several tasks. Two of the tasks > are gui based. One needs to run in the current desktop, while the other in > an alternate desktop of choice. Any clues? System: Red Hat Enterprise 4. This really isn't a bash topic. It is specific to gnome and the particular applications you are running. Gnome window managers will look for a _WIN_WORKSPACE property as described here- http://developer.gnome.org/doc/standards/wm/c44.html#AEN46 But there seems to be no standard gtk or other toolkit option that will set that property. The eterm application has a '-D desktop' or '--desktop desktop' option that will set that property. If you are very lucky there may be a similar option to the applications you are starting. Another approach is to use a wrapper application like kstart or devilspie to set the property on the window after it starts to map. That is likely to cause a visible flash as the application starts in the current workspace before it is moved to the requested workspace. I expect you would need to add one of those rather than finding one in RHEL4. -- Mike Stroyan <[EMAIL PROTECTED]>