|
|
@ -24,11 +24,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#include <kconfiggroup.h>
|
|
|
|
#include <kconfiggroup.h>
|
|
|
|
#include <kdebug.h>
|
|
|
|
#include <kdebug.h>
|
|
|
|
#include <kcomponentdata.h>
|
|
|
|
#include <kcomponentdata.h>
|
|
|
|
#include <kstandarddirs.h>
|
|
|
|
|
|
|
|
#include <kaboutdata.h>
|
|
|
|
#include <kaboutdata.h>
|
|
|
|
#include <kcmdlineargs.h>
|
|
|
|
#include <kcmdlineargs.h>
|
|
|
|
#include <kglobal.h>
|
|
|
|
#include <kglobal.h>
|
|
|
|
#include <QtDBus/QtDBus>
|
|
|
|
#include <QtDBus/QtDBus>
|
|
|
|
|
|
|
|
#include <QtCore/QStandardPaths>
|
|
|
|
|
|
|
|
|
|
|
|
int main( int argc, char* argv[] )
|
|
|
|
int main( int argc, char* argv[] )
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -38,7 +38,7 @@ int main( int argc, char* argv[] )
|
|
|
|
KCmdLineArgs::init( argc, argv, &about );
|
|
|
|
KCmdLineArgs::init( argc, argv, &about );
|
|
|
|
KComponentData inst( &about );
|
|
|
|
KComponentData inst( &about );
|
|
|
|
Q_UNUSED( KGlobal::locale() ); // jump-start locales to get to translated descriptions
|
|
|
|
Q_UNUSED( KGlobal::locale() ); // jump-start locales to get to translated descriptions
|
|
|
|
QString file = KStandardDirs::locate( "data", QString( "kwin/default_rules/%1" ).arg(argv[ 1 ] ));
|
|
|
|
QString file = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QString( "kwin/default_rules/%1" ).arg(argv[ 1 ] ));
|
|
|
|
if( file.isEmpty())
|
|
|
|
if( file.isEmpty())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
kWarning(1212) << "File " << argv[ 1 ] << " not found!" ;
|
|
|
|
kWarning(1212) << "File " << argv[ 1 ] << " not found!" ;
|
|
|
|