Bug 72089 - Incorrect factory name for KControl modules
Summary: Incorrect factory name for KControl modules
Status: RESOLVED FIXED
Alias: None
Product: kdevplatform
Classification: Developer tools
Component: appwizard (show other bugs)
Version: 1.0.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-07 21:12 UTC by Laur Ivan
Modified: 2009-01-22 23:38 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Laur Ivan 2004-01-07 21:12:42 UTC
Version:           Kdevelop CVS (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.3.1 
OS:          Linux

The factory name of of the .desktop file has the lower case string (directory name instead of project/class name)
Steps to reproduce:
1. Create a new kcontrol module (SampleModule)
2. Compile and install
3. try to run it via kcminit, it will fail saying it cannot find libkcm_samplemodule.la. In fact, it does not find the create_samplemodule symbol in the .so (the .so has create_SampleModule).


the .desktop file contains:

X-KDE-FactoryName=samplemodule
X-KDE-Library=samplemodule

It should be:
X-KDE-FactoryName=SampleModule
X-KDE-Library=samplemodule
Comment 1 Amilcar do Carmo Lucas 2004-01-07 23:10:12 UTC
Subject: kdevelop/languages/cpp/app_templates/kcmodule

CVS commit by aclu: 

Fix bug# 72089

Thanks to Laur Ivan for the detailed bug report.

CCMAIL: 72089-done@bugs.kde.org


  M +1 -1      module.desktop   1.13


--- kdevelop/languages/cpp/app_templates/kcmodule/module.desktop  #1.12:1.13
@@ -38,5 +38,5 @@
 Terminal=false
 Type=Application
-X-KDE-FactoryName=$APPNAMELC$
+X-KDE-FactoryName=$APPNAME$
 X-KDE-Library=$APPNAMELC$
 X-KDE-ModuleType=Library