Mozilla Profiles and Program Script - simple
I'm sure it has been asked before, but after nearly an hour of fruitless searching, I have come to the forums... when using Mozilla, opening a second browser brings up a Profile Manager, I'm not about to create 10 profiles just to use Mozilla, and yes I am aware that pressing CTRL+T opens a new tab and CTRL+N opens a new window, but I'm also not about to go from Desktop 8 where I am working to Desktop 2 just to open a new browser, so I'd like to know how I can get around the profile manager and open several Mozillas for use with the same profile (default) ... I have seen something about editing a file in /usr/X11R6/bin/mozilla ...but I have no such file or directory in that location... I run RedHat 8.0 and Mozilla 1.6 ... Mozilla is installed in /usr/local/mozilla/ and profiles are in /$HOME/.mozilla/ ... any help would be greatly appreciated... I also have another question, how would I go about running a certain Application every time I start X? I need to open KMix when I start X so that XMMS works, but I do not wish to manually start it every time... any help with opening it upon X's booting would also be greatly appreciated...
|
|
it didn't work, care to try again?
|
What didn't work, care to be more specific, like
in even providing an error message? Cheers, Tink |
I created the file run_moz.sh file as instructed in /usr/local/mozilla/ (where my mozilla is located) and gave the file execution perimssion, I then took the icon on my KDE Control Panel and changed it from running /usr/bin/htmlview to /usr/local/mozilla/mozilla and changed its pointing from /usr/share/applications/redhat-web.desktop to /usr/local/mozilla/run_moz.sh ... the Mozilla icon changed to a gear and I could no longer alter the Preferences for it... upon clicking that icon, mozilla would open, but a second click would bring up the profile manager, just as before... I tried another method in which I tried to run run_moz.sh but received the error " Cannot find the program 'run_moz.sh' " as I had expected it to (doesn't hurt to try though, eh?) ... I am curious, do I need to specify the full path to mozilla inside the run_moz.sh file?
Ex: Code:
#!/bin/sh [ Edit: I tried the full path in the run_moz.sh file, it did not do any better, as I expected... ] |
I can only start guessing now ... I'm not too familiar with
DeadRat. You installed Mozilla from source or a different source than DR RPM's? I'm almost certain that DR wouldn't use /usr/local ... Did you uninstall the original RPM? What result does 'which mozilla' give you? Cheers, Tink |
I installed from the file: mozilla-i686-pc-linux-gnu-1.6-installer.tar.gz
at http://ftp.mozilla.org/pub/mozilla.o...staller.tar.gz I did uninstall all of Mozilla1.0.1's files and directories before installing Mozilla 1.6 and I am positive Mozilla 1.6 is installed at /usr/local/mozilla/ as for the results i get from "which mozilla" ... [user@localhost /]# which mozilla /usr/bin/which: no mozilla in (/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/$HOME/bin) |
What error messages does the modified script (with
full path's) produce when you run it from a console? Cheers, Tink |
when I run 'run_moz.sh' (with full paths) in console, it opens several mozillas on the default profile, as we were hoping for... so it seems to be working now... odd... well, thank you for your help, do you know of any way I would be able to start KMix every time I boot into my X Server?
|
Actually KDE would normally remember that. If you
have turned session saving off you can add it to ~/.kde/Autostart ... Cheers, Tink |
thanks a lot man, adding it to ~/.kde/Autostart/ worked
|
LinuxBot5000, your code works very good. thanks, it solved a lot of problems. however i suggest reversing the if condition to make it possible to open files stored locally properly on doubleclicking. the modified script should be:
#!/bin/sh if mozilla -remote "ping()"; then if test "$1" = "" then mozilla -remote "xfeDoCommand (openBrowser)"; else mozilla -remote "openURL($1,new-window)"; fi else mozilla -width 800 -height 600 $1; fi; note the change in the second if condition and reversing the order of 'mozilla -remote' commands. |
All times are GMT -5. The time now is 03:39 AM. |