Fix install it as service

svn path=/trunk/KDE/kdenetwork/krfb/; revision=626124
This commit is contained in:
Laurent Montel
2007-01-22 08:57:01 +00:00
parent 73ddb17d52
commit d80c5803ec
3 changed files with 7 additions and 10 deletions

View File

@@ -16,4 +16,4 @@ target_link_libraries(kcm_krfb ${KDE4_KDECORE_LIBS} ${KDE4_KDE3SUPPORT_LIBS} ${S
install(TARGETS kcm_krfb DESTINATION ${PLUGIN_INSTALL_DIR})
install( FILES kcmkrfb.desktop DESTINATION ${XDG_APPS_DIR})
install( FILES kcmkrfb.desktop DESTINATION ${SERVICES_INSTALL_DIR})

View File

@@ -39,20 +39,15 @@
typedef KGenericFactory<KcmKRfb, QWidget> KcmKRfbFactory;
K_EXPORT_COMPONENT_FACTORY( krfb, KcmKRfbFactory( "kcm_krfb" ) )
// Can't use K_EXPORT_COMPONENT_FACTORY, since insertCatalogue necessary
extern "C" {
KDE_EXPORT void *init_kcm_krfb() {
KGlobal::locale()->insertCatalog("krfb"); // For invitation translations
return new KcmKRfbFactory("kcm_krfb");
}
}
KcmKRfb::KcmKRfb(QWidget *p, const QStringList &) :
KCModule(KcmKRfbFactory::instance(), p),
m_configuration(KRFB_CONFIGURATION_MODE) {
KGlobal::locale()->insertCatalog("krfb");
m_confWidget = new ConfigurationWidget(this);
QVBoxLayout *l = new QVBoxLayout(this);

View File

@@ -1,12 +1,14 @@
[Desktop Entry]
Encoding=UTF-8
Icon=krfb
Type=Application
Exec=kcmshell kcmkrfb
Type=Service
DocPath=krfb/krfb-configuration.html
ServiceTypes=KCModule
X-KDE-ModuleType=Library
X-KDE-Library=krfb
X-KDE-Factoryname=krfb
X-KDE-ParentApp=kcontrol
Name=Desktop Sharing