LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-26-2004, 10:43 AM   #1
Mur
LQ Newbie
 
Registered: Apr 2004
Location: SW Michigan
Distribution: White Box
Posts: 1

Rep: Reputation: 0
gnome-terminal launcher script


Some time ago, I wrote a little Perl script to launch the gnome-terminal application with a specific profile that used as a background a randomly-selected bit of wallpaper. This was so I could start up two different terminals against two different hosts (e.g., "test" and "production"), and then create new tabs within each window which would inherit the background wallpaper, and be visually distinguished and grouped. (Keeps me from issuing bad commands on the production server ...)

After a recent upgrade to my OS (Red Hat 7.3 => White Box), the script still works, but only the first gnome-terminal gets a "new" wallpaper. Subsequent invocations of the script get the same wallpaper as the original. Only if I shut down all the windows and open a new "first" do I get a new background.

I won't reproduce the whole script here, just the salient portions. Basically, the first 80% of the script opens a file with wallpaper paths, picks one, and leaves the name in $pixmap:

...
my @start = @ARGV;
@start = ('--window-with-profile=Random')
unless @start;
push @start, ('--command', $cmd) if $cmd;

push @start, '--geometry=100x42'
unless grep(/^--geo/,@start);
copy $pixmap,($ENV{HOME} . '/.newtermbackground')
or warn $!;

exec 'gnome-terminal',@start;
__END__

It appears to me that new invocations of gnome-terminal do some kind of optimization about the profile. Is there any way to override this?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gnome launcher for intellij shell script loopyzort Linux - Software 1 08-24-2009 12:46 PM
how to make a su terminal launcher? logosys Linux - General 2 10-24-2005 08:04 PM
How do I create application launcher using bash script msgclb Programming 2 01-30-2005 06:28 AM
CVSWineX update script/launcher error breun006 Linux - Games 1 09-02-2004 08:24 PM
Firefox 0.9 launcher script Pathian Linux - Software 2 06-17-2004 02:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration