mirror of
https://github.com/KDE/krfb
synced 2026-07-01 07:31:16 -07:00
Fix install it as service
svn path=/trunk/KDE/kdenetwork/krfb/; revision=626124
This commit is contained in:
@@ -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})
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user