Menu

#537 Ubuntu 13.10 global hotkeys activation 64-bit

current_release
open
nobody
1
2014-02-27
2014-02-10
shantiq
No

ok there first of all great piece of software love the lyrics artist info etc

Using it on Ubuntu 13.10 64-bit

and had problems with getting global hotkeys going

read this here: https://sourceforge.net/p/atunes/discussion/656585/thread/837931f2/#7c97

If you're over an x64 system, just install ia32 java and restart aTunes, then
the «enable hotkeys» option will activate. BTW, I see the answer in another
post over the forum.

modern version of this is

sudo apt-get install openjdk-7-jre:i386

so did that

built my own thus

cd ~/Downloads/atunes-3.1.1
chmod +x ./aTunes.sh
./aTunes.sh (or just double click to run the file aTune.sh)

also tried the deb and 3.0.2

but everytime i get this message when loading up

OpenJDK 64-Bit Server VM warning: You have loaded library /home/shan/atunes-3.1.1.DONOTDELETE/libJXGrabKey.so which might have disabled stack guard. The VM will try to fix the stack guard now.It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
INFO 2014-02-09 09:02:01,055 No hotkeys supportednull
INFO 2014-02-09 09:02:01,060 Hotkeys are not supported

how to correct all this and make global keys appear? thanx shan

Discussion

  • fleax

    fleax - 2014-02-12

    Hi,

    check you are using the right virtual machine, according to warning message you are using 64 bit VM, but post says to run with a 32 bit VM

     
  • shantiq

    shantiq - 2014-02-12

    hi fleax thanx for reply

    sorry but i do not understand

    i am running 64-bit ubuntu here
    i added sudo apt-get install openjdk-7-jre:i386
    so that global keys can be seen as only visible on 32-bit

    so how do i make ubuntu pick 32 just for atunes

    do i need to install virtualbox? i have never used that before

    sorry i need more in depth advice not sure what to do next thanx shan

    how to make system pick 32 bit VM

     

    Last edit: shantiq 2014-02-12
  • fleax

    fleax - 2014-02-13

    Make you you have a path like this:

    /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java

    That is the virtual machine you need. If so, change in aTunes.sh call to java, replacing with that full path, so you don't have to change your $PATH to test it.

     
  • shantiq

    shantiq - 2014-02-13

    hi again is this what you mean? [sorry i am not very knowledgeable on java] i am not a programmer :]

    aTunes.sh

    ========================================

    !/bin/sh

    Copyright (C) 2006-2011 Alex Aranda, Sylvain Gaudard, Thomas Beckers and contributors

    See http://www.atunes.org/wiki/index.php?title=Contributing for information about contributors

    http://www.atunes.org
    http://sourceforge.net/projects/atunes

    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License
    as published by the Free Software Foundation; either version 2
    of the License, or (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.

    Change to dir where aTunes is
    cd dirname $0

    Parse arguments and add quotes to all
    args=""
    for arg in "$@"
    do
    args="$args \"$arg\""
    done

    java -Dsubstancelaf.windowRoundedCorners=false -Dinsubstantial.looseTableCellRenderers=true -Djava.library.path=/usr/lib/jvm/java-7-openjdk-i386/jre/bin/java -Xms128m -Xmx256m -splash:splash.gif -cp aTunes.jar:lib/* net.sourceforge.atunes.Main $args

    ========================================
    still gives me

    :41,047 Selected player engine: net.sourceforge.atunes.kernel.modules.player.mplayer.MPlayerEngine@63a0edb8
    INFO 2014-02-13 11:17:41,557 Start count: 10
    INFO 2014-02-13 11:17:41,569 Application started (66.569 seconds)
    INFO 2014-02-13 11:17:41,790 Repository will not refresh automatically
    INFO 2014-02-13 11:17:44,734 0 audio objects of play lists not found
    INFO 2014-02-13 11:17:45,242 No hotkeys supportednull
    INFO 2014-02-13 11:17:45,282 Hotkeys are not supported

    INFO 2014-02-13 11:17:45,284 Listening for other instances on port 7777
    INFO 2014-02-13 11:18:38,872 Started play of file /home/shan/Music/Tim Buckley - Tim Buckley (1966) (2011 Limited Edition) [Rhino Handmade – RHM2 526087]/CD II - Previously Unreleased (The Bohemians Demos & Acoustic Demos)/16 - Wings (Acoustic Demo).flac

    maybe i misunderstand ... please be really simple and specific as i do not understand everything

    thanx shan

     

    Last edit: shantiq 2014-02-13
  • fleax

    fleax - 2014-02-17

    Hi,

    you only have to change the first "java" in that line, and keep the rest as is:

    /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java Dsubstancelaf.windowRoundedCorners=false -Dinsubstantial.looseTableCellRenderers=true -Djava.library...

    That should make aTunes run with 32bit java

     
  • shantiq

    shantiq - 2014-02-18

    thanx fleax

    so i changed to

    /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java Dsubstancelaf.windowRoundedCorners=false -Dinsubstantial.looseTableCellRenderers=true -Djava.library.path=./ -Xms128m -Xmx256m -splash:splash.gif -cp aTunes.jar:lib/* net.sourceforge.atunes.Main $args

    but then it does not start and gave

    cd atunes-3.2.0DONOTDELETE ; ./aTunes.sh
    Error: Could not find or load main class Dsubstancelaf.windowRoundedCorners=false

    i am on ubuntu 13.10 with Lxde DEnvironment if that helps understand situation

     

    Last edit: shantiq 2014-02-18
  • fleax

    fleax - 2014-02-27

    There is a missing hyphen before Dsubstancelaf.windowRoundedCorners=false

    It should be -Dsubstancelaf.windowRoundedCorners=false

     
  • shantiq

    shantiq - 2014-02-27

    Thanx now I see them ... thank you so much
    Great Program good sound great features

    shan

    http://s20.postimg.org/b5je39tel/hotkeys_Atunes.png

    added to bottom of aTunes.sh

    /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java -Dsubstancelaf.windowRoundedCorners=false -Dinsubstantial.looseTableCellRenderers=true -Djava.library.path=./ -Xms128m -Xmx256m -splash:splash.gif -cp aTunes.jar:lib/* net.sourceforge.atunes.Main $args

     

    Last edit: shantiq 2014-02-27

Log in to post a comment.