[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/ksmserver
From: Luboš Luňák <l.lunak () kde ! org>
Date: 2005-02-07 13:58:24
Message-ID: 20050207135824.14E551CFE2 () office ! kde ! org
[Download RAW message or body]
CVS commit by lunakl:
Workaround for Mozilla's pathetic support for session management. Now
at it is at least restarted.
M +15 -1 server.cpp 1.140
--- kdebase/ksmserver/server.cpp #1.139:1.140
@@ -1919,5 +1919,19 @@ static QStringList getQStringListPropert
QStringList KSMServer::windowWmCommand(WId w)
{
- return getQStringListProperty(w, XA_WM_COMMAND);
+ QStringList ret = getQStringListProperty(w, XA_WM_COMMAND);
+ // hacks here
+ if( ret.count() == 1 ) {
+ QString command = ret.first();
+ // Mozilla is launched using wrapper scripts, so it's launched using "mozilla",
+ // but the actual binary is "mozilla-bin" or "<path>/mozilla-bin", and that's what
+ // will be also in WM_COMMAND - using this "mozilla-bin" doesn't work at all though
+ if( command.endsWith( "mozilla-bin" ))
+ return QStringList() << "mozilla";
+ if( command.endsWith( "firefox-bin" ))
+ return QStringList() << "firefox";
+ if( command.endsWith( "thunderbird-bin" ))
+ return QStringList() << "thunderbird";
+ }
+ return ret;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic