Posts Tagged ‘firefox 24’

Firefox 24 and show last opened windows and tabs by default

julio 17, 2013

As you might know I use Firefox with Kde activities as explained in: Soporte de actividades para Firefox actualizado para Kde 4.10.

When I updated to Firefox 24 then suddenly everytime I started Firefox there was no window from last session. Was my firefoxkde? Yes, somehow it needed improvement to meet new qdbus calls but even that fixed the last session was lost.

Well, it seems with newer Firefox the default behaviour is to get kind of a blank homepage with default shortcuts to sync, setup and so on.

So… What we need to recover our old default behaviour?

  • Edit
  • Preferences
  • General

When Firefox starts:

Select: Show my windows and tabs from last time

As per my special setup I run:


so that it asked me to run the default profile and change that setting in the default profile. This way the changes are also kept in new iceweasel profiles for new activities.

Anuncio publicitario

Setting up a custom Firefox to use in KDE Activities updated to Firefox 24

julio 17, 2013

This is the: Setting up a custom Firefox to use in KDE Activities article but rewritten to work with Firefox 24. This updated howto has been tested to work with Kde 4.10.

Actually the ZDFox application class name detection of kwin window manager is not working as expected because some strange reason and thus the article might be updated for it to work.

The ZDFox rebranding part that seems to work is because of window title being different for Iceweasel and ZDFox.

The problem

Well, let’s see if I can explain it clearly. As you might now, I’m using Zimbra Desktop in an Ubuntu 10.04 chroot and that it’s based on Daver’s Zimbra Desktop on Oneric Ocelot which means that you can use whatever browser you want with it.. What I haven’t explained so far is that I’m experimenting on using a custom profile from Iceweasel (Debian’s Firefox fork) to open Zimbra Desktop.

This profile needs to be excluded from deletion in my Firefox kde script .

So, I’ve recently updated my Debian Unstable to 4.9.5 version and that means that according to the window title or the application class I can force the window to be in a given activity or even in all the activities at the same time.

That’s what I want to do. Open my Zimbra Desktop (actually Iceweasel opened with a given profile) and then kwin pins it into all activities.

When you try to do that you will see that when Iceweasel is starting it has different window titles which are changing:

  • No title
  • Zimbra Desktop
  • Zimbra : Bandeja de entrada.

After some tests I think that kwin detects the No title window title and that’s it.

So… What if I could change the application class (which it’s another variable that you can rely on to change activity and window pinning)? What if I could use Iceweasel or Firefox but with a different name? I suppose that would change the application class and voilà!

Setting up ZDFox

So I’m going to call ZDFox to my custom Iceweasel / Firefox and as you will see as I’m using custom profile I’m going to use the same default profile directory because I don’t need a non-default one, but you might want one.

cd /usr/lib
cp -a iceweasel zdfox
cd /usr/lib/zdfox
mv iceweasel zdfox
cd /usr/bin
ln -s ../lib/zdfox/zdfox zdfox
cd /etc
cp -a iceweasel zdfox
cd /usr/share/
cp -a iceweasel zdfox
cd /usr/lib/zdfox/browser

Modified for Firefox 24 – Begin

for nlink in chrome defaults icons modules ; do
  rm $nlink
  ln -s ../../../share/zdfox/browser/$nlink $nlink

Modified for Firefox 24 – End
Added for Firefox 24 – Begin

cd /usr/lib/zdfox
rm firefox-bin
ln -s zdfox firefox-bin

Added for Firefox 24 – End

As per Rebranding Firefox we are going to:
Modified for Firefox 24 – Begin

cd /usr/lib/zdfox/browser/chrome

Modified for Firefox 24 – End

mkdir en-US.dir
cd en-US.dir
unzip ../en-US.jar

Then you edit:


so that you change the brand names. I’ve also changed although it would seem it’s not compulsory.

Now let’s put everything back in the jar.

rm ../en-US.jar
zip -r ../en-US.jar *
cd ..
rm -rf en-US.dir

I’ve also noticed for the application class to be changed you need to edit:


and change the Name field. In this same file you can change (or add it if you’re using default Firefox, I think it’s added specifically in Iceweasel):


so that the profile path is different from the default one. As I’ve already said I’m not going to change it myself.

ZDfox use

So if you run zdfox both the window title and the application class will be ZDFox. So, that’s it, kwin finally detects Zimbra Desktop as a different program and I can pin it to all the activities.

The application class is not changed as it was in old versions. Somehow I’m missing something that has changed between latest used Firefox version and Firefox 245. However you can change it from the command line thanks to:


Finally, if anyone is interested in the Zimbra Desktop part in my Zimbra Desktop launcher now I have:

zdfox -P pruebasZD3 -no-remote --class=ZDFox -new-window $url

as a launcher.