Warning: session_start(): open(/tmp/sess_3mbvu8ic2vppnh13pjsti955p0, O_RDWR) failed: No space left on device (28) in /www/H01/htdocs/lib/base/lib_base.php on line 280
NotifyAmarok (Gnome) openDesktop.org
-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    Linux42.org    OpenSkillz.com   
 
Home
Apps
Artwork
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


-
- Content .- Fans (4) . 

NotifyAmarok (Gnome)

   1.0  

Amarok 2.0 Script

Score 85%
NotifyAmarok (Gnome)
zoom


NotifyAmarok (Gnome)
zoom


NotifyAmarok (Gnome)
zoom


Link:  Link
Downloads:  1365
Submitted:  Apr 23 2009
Updated:  Jun 3 2009

Description:

Alternative OSD through Gnome Notification Daemon

This script shows information about the currently played track as a notification using a notification daemon that implements the freedesktop.org dbus interface (e.g. libnotify or notify-osd). It is intended to replace Amaroks own OSD, so its recommend to deactivate this via the configuration menu.

Dependings:
* Amarok 2.x
* notify-osd (recommend) or libnotify-bin
* imagemagick
(if you use libnotify)

Some example strings for the configuration are available on my blog: http://mantis.blogsport.de/2009/07/08/notifyamarok-configuration/

UPDATE (1.11.09):
ubuntu karmic (9.10):

Due to some changes in notify-osd for karmic some issue evolved concerning amarok notifications:
1. The update seems to have become slower which first of all sometimes causes empty notifications.
2. Newlines in the title are prevented by design now.
3. The destruction of notifications stopped working so there is an additional standard duration without update after the duration time thats set in the NotifyAmarok configuration.
As I unfortunately dont have time for this project at the moment I most likely wont fix this in the near future. Sorry!

KDE 4.3:
KDE 4.3 now support the freedesktop.org specifications, but unfortunately no smooth update. If you are using KDE, i recommend you to use thesalus' amaroknotify (http://www.kde-apps.org/content/show.php/amaroKnotify?content=103197), which provides nearly the same functionality now, but is developed for KDE.




Changelog:

1.0
Major development step with stunning new features ;)
* Full Configurable Notification Title, Body and Duration with all song information available and nice unicode symbols
* A nice Help Window that (i hope) explains the configuration accurately
* set Keybinding to trigger a notification when ever you wonder which song is playing atm (though not very straightforward yet) see "Questions and Answers" for Details
* finally just using the same cover images Amarok does without searching for fitting covers
* new code concept/structure that benefits future development of more new features
* now works on Amarok 2.1 Beta as well




LicenseGPL
(NotifyAmarok1.0)
Donate
Send to a friend
Subscribe
Other  Content  from meerkat
Report inappropriate content



goto page:  1  2 

-

 thanks

 
 by browner on: Apr 25 2009
 
Score 50%

Does exactly what it says on the tin without any fuss. Really helps integration with the Gnome desktop :)


Reply to this

-

 Re: thanks

 
 by browner on: Apr 25 2009
 
Score 50%

Couple of suggestions:
1) When pressing stop or exiting amarok the current song is displayed first before the stop message. I think as it triggers both Amarok.Engine.trackChanged and Amarok.Engine.trackFinished?

2) When rapidly skipping two or three tracks the notifications come sequentially which leads to rather a long delay. Is it possible to not wait for one notification to disappear before submitting the next so they just stack up on screen?

But anyway, minor niggles :p


Reply to this

-

 Re: Re: thanks

 
 by meerkat on: Apr 26 2009
 
Score 50%

thanks for your feedback.
about 1) you are absolutely right, ill look into it next week.
about 2) as i just use the command line tool notify-send thats in the hand of the notification daemon. the standard gnome notification daemon just behaves as you wish. notify-osd in contrast just shows one amarok notification at a time. as notify-osd limits the number of notifications been displayed at the same time (i think it just allows 2), the stacking on screen behavior isn't possible at all for skipping through several tracks, nevertheless it might be possible to gain another solution for skipping through problem. notify-send doesn't povide any helpful options for this case, but ill have a look at the libnotify-api.


Reply to this

-

 Re: Re: Re: thanks

 
 by browner on: Apr 26 2009
 
Score 50%

yes your right about notify-send - i just tried it from the command line and it will only show one message at a time so not sure how you can solve that one. nevermind ;)


Reply to this

-
.

 Re: Re: Re: thanks

 
 by browner on: May 2 2009
 
Score 50%

notify.py does the trick.

Works a treat now, really polished :)


Reply to this

-

 Amarok 1.4

 
 by lacrimstein on: May 1 2009
 
Score 50%

Is Amarok 1.4 going to be supported?


Reply to this

-

 Re: Amarok 1.4

 
 by meerkat on: May 1 2009
 
Score 50%

thats not planned at the moment and i dont think it will. it would mean rewriting half of the code which uses the new amarok qt api. besides there are already two notification scripts for Amarok 1.4:
http://www.kde-apps.org/content/show.php/Amarok+libnotify?content=75979
http://www.kde-apps.org/content/show.php/amarok+libnotify?content=49372


Reply to this

-

 Version

 
 by Hyperion1984 on: May 27 2009
 
Score 50%

The download link for NotifyAmarok 0.4.1 leads to version 0.3.

Also, for unknown reasons, sometimes the script doesn't seem to be able to fetch the album cover.


Reply to this

-

 Re: Version

 
 by meerkat on: May 27 2009
 
Score 50%

1. thats actually the version 0.4.1, its just the wrong version number in the script.spec (sorry for that)
2. at the moment the cover is taken from the amarok cover folder (if there is one with the right hashcode), or the folder where the music file is stored (if there is any image-file at all). if there is no cover show in notification but in amarok there is, that can be caused for example by changed tags since the cover storage or manual assignment of a file in a different folder.
as i have found out in the meantime how to simply use exactly the same image file amarok uses i will fix that in the next release, but that will take some time as im really busy at the moment.


Reply to this

-

 Re: Re: Version

 
 by Hyperion1984 on: May 27 2009
 
Score 50%

1- Thanks for the info

2- By looking more precisely in amarok "albumcovers" folder, I found out two different folders. The first one, "large", is composed of album covers directly fetched with amarok while the second one, "tagcover", contains covers from the song tag. Covers from this second folder are not displayed by NotifyAmarok.


Reply to this

-

 Re: Re: Re: Version

 
 by meerkat on: May 27 2009
 
Score 50%

ok, thanks for the hint, thats easy to include (if the filenames there are calculated the same way). please test if it works with the new version.


Reply to this

-

 Re: Re: Re: Re: Version

 
 by Hyperion1984 on: May 28 2009
 
Score 50%

Thanks for the fast update though it doesn't seem to work. I'm a little bit busy right now, but I'll try to do further tests.


Reply to this

-

 Re: Re: Re: Re: Re: Version

 
 by meerkat on: Jun 3 2009
 
Score 50%

The new version should solve this problem, as the cover path is now directly taken from Amaroks DBus interface.


Reply to this

-

 Re: Re: Re: Re: Re: Re: Version

 
 by Hyperion1984 on: Jun 3 2009
 
Score 50%

Nice Job! It works perfectly and the new look is awesome.



-
.

 Doesn't work with Amarok 2.1

 
 by alexbuzeta on: May 28 2009
 
Score 50%

I use Amarok 2.1 Beta 1 and Ubuntu

You could fix it, please?


Reply to this

-

 Re: Doesn't work with Amarok 2.1

 
 by meerkat on: May 28 2009
 
Score 50%

thanks for the hint, i'll investigate why that is the case


Reply to this

-

 Re: Doesn't work with Amarok 2.1

 
 by meerkat on: Jun 3 2009
 
Score 50%

I tested with Amarok 2.1 Beta 2 on Ubuntu 9.04 and the new version (1.0) works fine there. Dont know why the previous version didnt work, but it used a lot more of the Amarok Script API, maybe something changed there. Please test if the new version works on your system as well.


Reply to this

-
.

 Re: Re: Doesn't work with Amarok 2.1

 
 by alexbuzeta on: Jun 8 2009
 
Score 50%

Now it works!

I installed the final version of Amarok 2.1 and NotifyAmarok 1.0 and works great

Thanks for the help!


Reply to this

-

 Re: Re: Doesn't work with Amarok 2.1

 
 by zeratul2099 on: Jun 25 2009
 
Score 50%

Works great here with Amarok 2.1 and Ubuntu 9.04.
Thanks for the app :)


Reply to this

-

 Re: Re: Re: Doesn't work with Amarok 2.1

 
 by finifly on: Aug 6 2009
 
Score 50%

It's not working with mine. I'm on Jaunty 64 and have Amarok 2.1.1.


Weaseling out of things is important to learn. It's what separates us from the animals... except the weasel.
Reply to this

-

 Re: Re: Re: Re: Doesn't work with Amarok 2.1

 
 by meerkat on: Aug 7 2009
 
Score 50%

i checked on jaunty 64bit live cd with amarok 2.1.1 and everything worked fine. did you activate the script in the script manager (check the checkbox)? could you please specify the problem: does it install / show up in the script manager? what exactly is not working? etc.


Reply to this

-

 Re: Re: Re: Re: Re: Doesn't work with Amarok 2.1

 
 by finifly on: Aug 10 2009
 
Score 50%

Yes I have installed it. I tried from the script download window in amarok and this site. And yes the check box is checked. After restarting amarok, nothing shows up.


Weaseling out of things is important to learn. It's what separates us from the animals... except the weasel.
Reply to this

-

 Re: Re: Re: Re: Re: Doesn't work with Amarok 2.1

 
 by finifly on: Aug 10 2009
 
Score 50%

Sorry, I didn't actually realize that this is for Gnome. I use KDE. Sorry about that!


Weaseling out of things is important to learn. It's what separates us from the animals... except the weasel.
Reply to this

-

 Re: Re: Re: Re: Re: Re: Doesn't work with Amarok 2

 
 by meerkat on: Aug 10 2009
 
Score 50%

the script was originally created for gnome, but it works with kde as well, see here:
http://www.kde-apps.org/content/show.php?action=knowledgebase&content=103307&kbid=73
note that the above is only true for kde versions before the new kde 4.3, that just was released a week ago. for kde 4.3 you wont need any additional packages, as knotify now implements the dbus api my script uses. unfortunately there are some serious issues with that (see apoldors posts below), so if you are on kde 4.3 please wait till they are fixed or i released a temporary workaround which i will implement as soon as i find time for that.



-
.

 UTF-8

 
 by apolodor on: Jul 21 2009
 
Score 50%

Thank you for the script, it work nicely even under KDE.

Just one thing: it does not seem to work when it needs to show characters with accents (like é). All text is missing (I get a blank popup with only the cover image).

If it helps, the ID3 tags for those specific MP3 files might be UTF-8 encoded (with EasyTAG).


Reply to this

-

 Re: UTF-8

 
 by apolodor on: Jul 21 2009
 
Score 50%

I forgot to mention my configuration:
- OS: Kubuntu Jaunty
- KDE 4.3 RC2
- Amarok 2.1.1


Reply to this

-

 Re: UTF-8

 
 by meerkat on: Jul 21 2009
 
Score 50%

hm, thats strange - i remember having those problems in an early version, but they were solved when i moved from amarok api to dbus as source of the track information. anyway, cant see how utf-8 can be the problem - actually the script is encoding everything to utf-8. please check if dbus is providing the track information correctly (e.g. by typing the following in your terminal when a track in question is playing in amarok):

qdbus org.kde.amarok /Player GetMetadata

are you sure it's caused by the accent characters or are there other special characters (e.g. $ or ") in your tags in question? are the notes ♫ and the play symbol ▶ shown in your notifications? does the problem appear in head as well as body of the notification and title as well as artist tag?


Reply to this

-
.

 Re: UTF-8

 
 by apolodor on: Jul 21 2009
 
Score 50%

I have done some tests and I managed to locate the problem. I have tested only combinations of 3 fields: artist, title, and album.

My configuration for the script was:
Head: $artist$n$notes $title $notes
Body: $album ($year)$n$play $elapsed /$total

The symbols for "notes" and "play" appear fine, btw.

I tried removing various parts from both the head and the body and it seems that the error appears only if both the following conditions are true:
- the artist or the album field contains a character with an accent
- that specific field is not "alone" in its position (be it Head or Body).

So, if $artist is Händel (and no other fields are special):

This version

Head: $artist
Body: $title - $album

works fine, while this version

Head: $title
Body: $artist - $album

throws a blank.

If only the title has a special character, everything works fine, no matter how the @title field is combined.

I hope this helps.


Reply to this

-

 Re: Re: UTF-8

 
 by meerkat on: Jul 21 2009
 
Score 50%

thanks for the detailed description. i have no idea why those encoding problems occur and i sadly cant test on them, because on my system everything works fine. nevertheless ill look into it when i find time to. in the meantime you can test this little hack, that may solve your specific problem, but also may cause other:
http://mantis.blogsport.de/images/NotifyAmarok1.1.amarokscript.tar.gz


Reply to this

-

 Re: UTF-8

 
 by apolodor on: Jul 31 2009
 
Score 50%

I did not try to use version 1.1 until I have updated to KDE 4.3 RC3 and NotifyAmarok stopped working altogether.

The interesting thing in KDE 4.3 RC3 is the developers unified the notification system, so even the notifications sent through notify-osd appear through the KDE notification system. Something in this change made NotifyAmarok 1.0 stop working, so I updated to 1.1 from the link you gave me.

The good news:
- It is working again!
- The characters with accents are no longer a problem!

The ??? news:
- The notifications appear through KNotify. This means (I think) that using the Gnome-style notifications under KDE 4.3 is out of the question. Personally, I do not have a problem with that (I'm interested in the quality of the notifications, not the format, and a unified format appeals to my sense of order), but others might have.
- Right now, NotifyAmarok and amaroKnotify looks quite similar under KDE, but your script is still a lot more configurable.

The bad news:
- The line breaks ($n) are replaced with simple white spaces.
- The album cover is not shown - the default KDE "missing" icon is shown instead. Though, if the album has no cover, the default "nocover" image IS shown! A bug, maybe? Also, the image shown is very, very small, because of the placement in the notification format.
- Instead of appearing, staying on screen for the set time, and then disappearing, the notification appears for a second, disappears, appears again for a second, disappears again, and the cycle keeps repeating for the set time.

I hope this helps. You have done a great job with this script and I long to see it perfected.


Reply to this

-

 Re: Re: UTF-8

 
 by meerkat on: Aug 2 2009
 
Score 50%

i have checked on kubuntu karmic alpha and can confirm all your observations. well it seems kde is starting to support the freedesktop notification interface which is good news for the integration of gnome software in kde and vice versa (examples: http://www.kdedevelopers.org/node/4028).
there still seems to be some bugs though but im confident theyll be fixed till karmic final in october. the only thing i can do in the meantime is prevent the blinking by deactivating the update if knotify is used and maybe fix the image problem. ill try that sometime next week.
thanks for your detailed report on the problems with kde 4.3.


Reply to this

-

 Re: Re: Re: UTF-8

 
 by apolodor on: Jul 31 2009
 
Score 50%

I managed to fix the issue of the notification appearing, disappearing, appearing, etc. by changing time.sleep(0.98) into time.sleep(10) in notify.py.

Still, I realized that the displaying time of the notification is not the one specified in the settings, but probably the one default for KDE (about 3 seconds).


Reply to this

-

 Re: Re: Re: Re: UTF-8

 
 by meerkat on: Aug 2 2009
 
Score 50%

good thinking. i just realized that i havent commented my sourcecode at all - i should add some comment in the next release. you actually changed the update interval from nearly 1 sec to 10 sec which prevents the blinking as long as the duration is < 10 sec. the duration time falls back to default this way, ill handle that together with the other issues in my next release.


Reply to this

-
.

 Problem with streams

 
 by stimpyjcat on: Aug 23 2009
 
Score 50%

Streams like radioparadise.com give the song details (artist and title) and the (ugly) OSD show them when change, but theres no real track change for amarok so the notifyamarok script dont work.

Will be possible to get the same behavior as the (ugly) OSD with this script when using streams?


Reply to this

-
.

 Re: Problem with streams

 
 by Daniel2009 on: Aug 26 2009
 
Score 50%

Same problem here, don't work with Internet radio streams. KDE 4.3.0, Amarok 2.1.1. Must use the ugly OSD for now :-(


Reply to this

goto page:  1  2 

Add commentBack




-



 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Artwork
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Content RSS   
Events RSS   

Participate
Groups
Forum
Add Content
Public API
About openDesktop.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2007-2016 openDesktop.org Team  
All rights reserved. openDesktop.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
openDesktop is a trademark of the openDesktop.org Team