application icongmusicbrowser

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
third_party_apps:xchat [2009/04/17 16:17] lau1third_party_apps:xchat [2009/04/22 13:01] – updated with script new fonctionalities lau1
Line 7: Line 7:
 I added some checks so that it fails to load gracefully. I added some checks so that it fails to load gracefully.
  
-Struggling with actually launching gmusicbrowser (I can launch it but it hangs xchat till you close it)+the script is now capable of launching gmlusicbrowser 
 +It will load gmusicbrowser automatically upon startup 
 + 
 +If you close gmusicbrowser then use one of the command it will let you know that it needs restarting. 
 +A new commands lets you do that.
  
  
 ===== Installing the script ===== ===== Installing the script =====
 download it from  download it from 
-http://sites.google.com/site/lcoudeur/Home/gmplay.pl2.zip?attredirects=0 +http://sites.google.com/site/lcoudeur/Home/gmplay.pl3.zip?attredirects=0
 ==== Changing the message displayed ==== ==== Changing the message displayed ====
  
Line 57: Line 60:
 </code> </code>
  
-if everything is fine Xchat will let you know buy printing the message+if everything is fine Xchat will let you know by printing the message
 <code> <code>
- Loaded gmusic XChat 0.0.3:+ Loaded gmusic XChat 0.0.5:
 </code> </code>
  
 +===== gmusicbrowser is not loaded already. =====
  
 +
 +The script will start it and wait 4 seconds.
 +It is possible that your machine is slower to load gmusicbrowser.
 +In that case the script will not load correctly as it has not waited long enough. 
 +<code>
 + starting gmusic browser
 + Error loading '/home/laurent/.xchat2/gmplay.pl':
 + org.freedesktop.DBus.Error.ServiceUnknown: The name org.gmusicbrowser was not provided by any .service files
 +</code>
 +
 +If gmusicbrowser loads anyway then you just need to update the script.
 +
 +Search the script file around the line 150 for <code perl>sleep (4);</code>
 +change it to 6 or more to lengthen the time margin your script will wait before it attempts to connect via Dbus.
 ===== Commands available ===== ===== Commands available =====
  
Line 70: Line 88:
  
 What can it do ? What can it do ?
- 
-At the moment it can only do things when gmusicbrowser is running. It will not start it. 
  
 in xchat type  in xchat type 
Line 81: Line 97:
 <code> <code>
  gmusic XChat Help:  gmusic XChat Help:
-   * Script Version:     0.0.3+   * Script Version:     0.0.5
   About:   About:
    * Author: Laurent Coudeur <####################">    * Author: Laurent Coudeur <####################">
   Commands:   Commands:
 +  * /gm_start - starts gmusic browser when it has been closed.
   * /gm_play - Display the current song playing to a channel.   * /gm_play - Display the current song playing to a channel.
   * /gm_next - Skip to the next track.   * /gm_next - Skip to the next track.
Line 96: Line 113:
  
 there you have it there you have it
-  * /gm_play does what it says on the tin. Displays the currently playing song information as set in previous paragraph. 
  
 +  * /gm_start Starts gmusicbrowser if it's not present on dbus. It will not start a second instance. It pauses 4 seconds to allow the application to start.
 +  * /gm_play does what it says on the tin. Displays the currently playing song information as set in previous paragraph.
   * /gm_next skips the current song   * /gm_next skips the current song
   * /gm_prev plays the previous song   * /gm_prev plays the previous song
Line 109: Line 127:
 ===== Todo list ===== ===== Todo list =====
  
-Lots ;) +any suggestions 
- +
-  * Updating the page... +
-  * Add command to start gmusicbrowser. +
-  +
  
  
third_party_apps/xchat.txt · Last modified: 2022/05/23 01:30 by 127.0.0.1
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0