
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
What I did is putting together all the contributed script on my blog and put it as an amarok script.
This script will update your Kopete status to "Amarok is playing title -artist", and set your global photo to current album cover.
Thanks to:
* Bona
* Gustavo
* All comments submitter on my blog
Blog entry:
http://blog.neofreko.com/index.php/2005/06/29/kopete-now-listening-plugin/#comments
14 years ago
2006/6/10:
The "Kopete: command not found" keep on coming, again. This time I see it on amarok 1.4-svn. Seems to be related to the echo commands all over the script which doesn't have its output redirected to a file. I redirected all echo's output to ~/log.txt and the error mesage is gone. Yay! ^ ^
2006/4/14:
I finally found out what everyone had been talking about. There _was_ some error within the kopete-amarok-status.sh. Missing quotes to be exact. Thus, it would spew "Kopete comamnd not found" error.
I was using half this script and half the functionality of native Nowlistening plugin of kopete 0.12. Thus I've never realized that I have had error in my script. I guess this explain a lot why my kopete avatar has never changed :D. Shame on me!! Forgive my silliness.
2006/3/29:
Added option for set away message and set album cover as avatar
2006/1/12:
Added configuration dialog via Kommander includes: custom prefix status and "mark as away" option. Notice that you'll be needing Kommander for this (no biggie if you have installed Quanta as it's included)
2006/1/9:
fixed bug: script stopped when trying to excecute external script (kopete-amarok-status.sh)
2006/1/8:
fixed quote bug, affect cover image path containing space
14 years ago
2006/6/10:
The "Kopete: command not found" keep on coming, again. This time I see it on amarok 1.4-svn. Seems to be related to the echo commands all over the script which doesn't have its output redirected to a file. I redirected all echo's output to ~/log.txt and the error mesage is gone. Yay! ^ ^
2006/4/14:
I finally found out what everyone had been talking about. There _was_ some error within the kopete-amarok-status.sh. Missing quotes to be exact. Thus, it would spew "Kopete comamnd not found" error.
I was using half this script and half the functionality of native Nowlistening plugin of kopete 0.12. Thus I've never realized that I have had error in my script. I guess this explain a lot why my kopete avatar has never changed :D. Shame on me!! Forgive my silliness.
2006/3/29:
Added option for set away message and set album cover as avatar
2006/1/12:
Added configuration dialog via Kommander includes: custom prefix status and "mark as away" option. Notice that you'll be needing Kommander for this (no biggie if you have installed Quanta as it's included)
2006/1/9:
fixed bug: script stopped when trying to excecute external script (kopete-amarok-status.sh)
2006/1/8:
fixed quote bug, affect cover image path containing space
martin-julie
11 years ago
Report
reggler
12 years ago
I don't get the script working with Amarok 1.4.9.1 and Kopete 0.50.1 on KDE 4.0.4. Kopete's status message just stays empty. Any idea?
Report
nescius
14 years ago
Report
Fedorateur
14 years ago
Report
Dapper
14 years ago
Report
poisoned
14 years ago
(no offence, just wondering)
Report
jant
14 years ago
I'm using Kubuntu 5.10, and I've installed this script using the Amarok Script Manager.
When I run it I get this error in the output log:
—————————————–
../scripts/kopete-now-listening/getcfg.sh: line 4: config.conf: File or directory doesn’t exist
../scripts/kopete-now-listening/getcfg.sh: line 4: config.conf: File or directory doesn’t exist
/home/jant/.kde/share/apps/amarok/scripts/kopete-now-listening/kopete-now-listening.sh: line 27: Amarok: command not found arguments do not match no such function
/home/jant/.kde/share/apps/amarok/scripts/kopete-now-listening/kopete-now-listening.sh: line 33: Kopete: command not found
—————————————–
I've checked the directories and scripts and they're are correctly located…
any clue?
anyone using Kubuntu 5.10?
Thanks in advance!
jant
Report
Ekardnam
14 years ago
(amarok, kopete. Just a guess.)
Report
neofreko
14 years ago
It's now fixed in 0.3.1 :)
Report
rokkford
15 years ago
amarok: BEGIN: void ScriptManager::slotReceivedStderr(KProcess*, char*, int)
amarok: [ScriptManager] [ERROR!] kopete-now-listening.sh:
amarok: ~/.kde/share/apps/amarok/scripts/kopete-now-listening/kopete-now-listening.sh: line 27: Kopete: command not found
amarok:
amarok: END__: void ScriptManager::slotReceivedStderr(KProcess*, char*, int) - Took 0.00021s
i just get the image to kopete, but no text...
Report
boardercoach
15 years ago
Report
pembo13
15 years ago
Report
exclude
15 years ago
Is there not a way to detect the kopete status before and re-use that?
Report
neofreko
15 years ago
Thx
Report
katswaio
15 years ago
Report
neofreko
15 years ago
It has somthing to do with global identity, I guess.
Report
katswaio
15 years ago
Report
neofreko
15 years ago
Report
neofreko
15 years ago
source "blah blah"
I change it to:
`source "blah blah"`
Notice the backtick. And now it works. I'm sorry for the silly bug :(
Report
neversfelde
15 years ago
Report
neofreko
15 years ago
To test wether the script has run, do this in console:
[geek@toni kbfx-theme]$ cat /tmp/amarok-last-song
KoRn - 10 Or A 2-Way
[geek@toni kbfx-theme]$ cat /tmp/amarok-last-album
See You On The Other Side
[geek@toni kbfx-theme]$ ls -l /tmp/kopete-amarok-cover.png
-rw-rw-r-- 1 geek geek 22559 Jan 8 09:31 /tmp/kopete-amarok-cover.png
[geek@toni kbfx-theme]$
Report
bram85
15 years ago
Are there any requirements on the Kopete version? Using 0.10.4 (KDE 3.4) at the moment.
Report
Carroarmato0
15 years ago
Report
khertz
15 years ago
Report
neofreko
15 years ago
Open Tools -> Script Manager, click the Install Script button and locate the tar.gz file
Run the script with the Run button
Report