kde4support--

REVIEW: 115150
master
Bhushan Shah 11 years ago
parent 7a380fa343
commit bdb6854a57

@ -4,7 +4,7 @@ set(kwin_update_default_rules_SRCS update_default_rules.cpp)
add_executable( kwin_update_default_rules ${kwin_update_default_rules_SRCS}) add_executable( kwin_update_default_rules ${kwin_update_default_rules_SRCS})
target_link_libraries( kwin_update_default_rules Qt5::Core Qt5::DBus KF5::ConfigCore KF5::KDE4Support ) target_link_libraries( kwin_update_default_rules Qt5::Core Qt5::DBus KF5::ConfigCore )
install(TARGETS kwin_update_default_rules DESTINATION ${LIB_INSTALL_DIR}/kconf_update_bin/ ) install(TARGETS kwin_update_default_rules DESTINATION ${LIB_INSTALL_DIR}/kconf_update_bin/ )

@ -22,10 +22,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <kconfig.h> #include <kconfig.h>
#include <kconfiggroup.h> #include <kconfiggroup.h>
#include <kcomponentdata.h>
#include <k4aboutdata.h>
#include <kcmdlineargs.h>
#include <kglobal.h>
#include <QtDBus/QtDBus> #include <QtDBus/QtDBus>
#include <QtCore/QStandardPaths> #include <QtCore/QStandardPaths>
#include <QDebug> #include <QDebug>
@ -34,10 +30,9 @@ int main( int argc, char* argv[] )
{ {
if( argc != 2 ) if( argc != 2 )
return 1; return 1;
K4AboutData about( "kwin_update_default_rules", "kwin", KLocalizedString(), 0 );
KCmdLineArgs::init( argc, argv, &about ); QCoreApplication::setApplicationName ("kwin_update_default_rules");
KComponentData inst( &about );
Q_UNUSED( KGlobal::locale() ); // jump-start locales to get to translated descriptions
QString file = QStandardPaths::locate(QStandardPaths::GenericDataLocation, 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())
{ {

Loading…
Cancel
Save