This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Plasmoid: could not find requested component

Tags: None
(comma "," separated)
banhbaochay
Registered Member
Posts
10
Karma
0
OS
Hi everybody,
I learn to create hello-javascript plasmoid by javascript. I do follow these step in :http://techbase.kde.org/Development/Tutorials/Plasma/JavaScript/GettingStarted.
My tree directory is:
Code: Select all
hello-javascript/
hello-javascript/content/
hello-javascript/metadata.desktop
hello-javascript/content/code/
hello-javascript/content/code/main.js

But when I try:
Code: Select all
plasmoidviewer hello-javascript

The problem is: Could not find requested component: hello-javascript

My system is KDE 4.4, I installed: plasma-addons, plasma-addons-devel, qtscript.

Please, help me to fix this problem!

Last edited by banhbaochay on Thu Dec 09, 2010 11:05 am, edited 1 time in total.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Please try running "kbuildsycoca" and post the contents of metadata.desktop please.
Also, have you installed this tree into the appropriate directory under $HOME? ( using plasmapkg )


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
banhbaochay
Registered Member
Posts
10
Karma
0
OS
Hi bcooksley,
Thank you for reply.
My system hasn't got kbuildsycoca, output of kbuildsycoca4 is:
Code: Select all
kbuildsycoca4 running...
kbuildsycoca4(3045)/kdecore (services) KServicePrivate::init: The desktop entry file  "/usr/share/applications/YaST2/groups/apparmor.desktop"  has Type= "Application"  but no Exec line

kbuildsycoca4(3045) KBuildServiceFactory::createEntry: Invalid Service :  "/usr/share/applications/YaST2/groups/apparmor.desktop"
kbuildsycoca4(3045) parseLayoutNode: The menu spec file contains a Layout or DefaultLayout tag without the mandatory Merge tag inside. Please fix your file.

My metadata.desktop is:
Code: Select all
[Desktop Entry]
Name=Hello JavaScript
Comment=An example JavaScript widget
 
Type=Service
X-KDE-ServiceTypes=Plasma/Applet
 
X-Plasma-API=javascript
X-Plasma-MainScript=code/main.js
X-Plasma-DefaultSize=300,400
 
X-KDE-PluginInfo-Author=Le Anh Dung
X-KDE-PluginInfo-Email=anhdungle1986@gmail.com
X-KDE-PluginInfo-Name=hello-javascript
X-KDE-PluginInfo-Version=1.0
X-KDE-PluginInfo-Website=http://plasma.kde.org/
X-KDE-PluginInfo-Category=Examples
X-KDE-PluginInfo-License=GPL
X-KDE-PluginInfo-EnabledByDefault=true


I haven't installed using plasmapkg because in tutorial, I read that "you can testing without installing by run plasmoidviewer"

However, I try to install by plasmapkg, the result does not change: "Could not find..."
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I gather you are following http://techbase.kde.org/Development/Tut ... ingStarted

If so, are you passing the full path to your Plasmoid ( ie. where the folder where metadata.desktop is ) to plasmoidviewer?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
banhbaochay
Registered Member
Posts
10
Karma
0
OS
I read and did follow the tutorial. In my tree directory I post in #1, I change to hello-javascript directory for running plasmoidviewer
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
You need to run "plasmoidviewer ." in this case. Make sure to keep the "." in the command.

You only use the name if you have installed it. As you haven't, you need to supply a path, which the "." will (it supplies the current directory)


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
banhbaochay
Registered Member
Posts
10
Karma
0
OS
Oopp, it's my fault, I always try `plasmoidviewer hello-javascript` :(
Many thanks to you :)
It's exactly problem with me. I try `plasmoidviewer .` and it 's solved.


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient