Ubuntu Mate 17.10 tray menus [SOLVED]

edited October 2017 in Linux VPN Setup
It installed and works fine, but the mouse over text and right click menu text are not showing properly. Am I missing something to make it work 100%?



Comments

  • Seems to be a bug within one of the libraries PIA uses. I had many customers update nwjs in our support with so good success so far:
    cd ~/.pia_manager/pia_tray_bin/
    rm -r nw-linux-64
    curl https://dl.nwjs.io/v0.24.0/nwjs-v0.24.0-linux-x64.tar.gz | tar -zx
    mv nwjs-* nw-linux-64
    mv nw-linux-64/nw nw-linux-64/pia_nw

    Once this is done, simply restart the app. If you wish to undo this fix, simply reinstall the app and it will reinstall back the original version that came with it.

  • Hello
    I had the same problem and the solution works fine.
    Thank you
  • Solution works fine on Lubuntu 17.10.
  • works, Thank you Max-P
  • This worked perfectly for me on Ubuntu Mate 17.10.  Thank you.
  • I notice there are two directories, nw-linux-64 and nw-linux-32 ... does your solution only work for 64-bit? If that is the case is nwjs-v0.26.2-linux-ia32.tar.gz the download for 32 bit (and for other steps 32 replaces 64)? Thanks
  • Takahe said:
    I notice there are two directories, nw-linux-64 and nw-linux-32 ... does your solution only work for 64-bit? If that is the case is nwjs-v0.26.2-linux-ia32.tar.gz the download for 32 bit (and for other steps 32 replaces 64)? Thanks
    Yep, sounds about right!
  • edited October 2017
    Thanks Max-P for the confirmation. Worked a treat! Modified steps used;
    cd ~/.pia_manager/pia_tray_bin/
    rm -r nw-linux-32
    curl https://dl.nwjs.io/v0.26.2/nwjs-v0.26.2-linux-ia32.tar.gz | tar -zx
    mv nwjs-* nw-linux-32
    mv nw-linux-32/nw nw-linux-32/pia_nw

    Thanks again
  • Hey. I have this exact issue and would love to resolve it by following the instructions given here but as I am new to Linux I have no idea on what to do.like are these command lines to run in the terminal? If any one could give more detailed instructions that would be amazingly helpful.
  • @Keakz Hiya! The commands are indeed run in the terminal.
  • the amazing thing is you can easily discover the documentation for "cd" and "rm" and "curl" and "mv"
  • martouf said:
    the amazing thing is you can easily discover the documentation for "cd" and "rm" and "curl" and "mv"
    Please be friendly to beginners. Switching to Linux is a pretty big change to take especially when you're not a tinkerer to begin with. This kind of comments is exactly what pushes some people away from Linux. As a advanced user I understand how dumb some questions can look, but that's how people learn. If you don't feel like answering please just skip the thread!
  • edited November 2017
    i am being friendly.  the old saying is Unix is very user friendly.

    ps: it's so friendly that a two keyword search is all that is necessary: linux mv
  • martouf said:
    i am being friendly
    it's all subjective, but if it helps any i took it as rude sarcasm too! :)
  • edited November 2017
    I figured it out, thanks sn0wmonster! Max-P for your understanding of beginner :) I was a little confused at curl https://dl.nwjs.io/v0.26.2/nwjs-v0.26.2-linux-ia32.tar.gz | tar -zx but I found a awesome article explaining the "Curl" Command. I had to sudo apt-get install curl.before being able to run the command. I've been a windows user for a long time but decided to give Linux a try again. So I installed Lubuntu to a usb and have been loving it. I'm not really the biggest computer tinkerer but I want that to change. Thanks again guys!

  • good, @Keakz , you're on the right track now!

    the curiosity and initiative will serve you better than the message-in-a-bottle nature of a support forum.

    the difference between what you were using a long time versus what you're using now is very much like the difference between subsisting on only prepared foods versus actually working with ingredients. also now you can take what Chef has put together and make your own adjustments before partaking - which is a heck of a timesaver over starting from scratch to make your adjustments.
  • edited November 2017
    Absolutely! I'll also add that Linux in general is quite well documented for the most part, so practically anything you don't understand you can always look it up to know what it does exactly and how to tweak it for your own needs.


    To break down what the little snippet does:
    cd ~/.pia_manager/pia_tray_bin/
    This one is pretty self explanatory if you've ever heard of "cd" (Change Directory), but we set ourselves into the right directory within PIA's files to work on. In this case we're upgrading the tray engine (which is node-webkit, hence the nw name later on).

    rm -r nw-linux-32
    Next, we delete the folder and everything inside it that contains the 32bit (or 64bit if using the other snippet) version of nw, as we'll be replacing it entirely.

    curl https://dl.nwjs.io/v0.26.2/nwjs-v0.26.2-linux-ia32.tar.gz | tar -zx
    This one actually does two things at once (the output of curl is piped to the input of tar with the | operator): We download the newest version of nw from their website (in this case the 32bit version) and immediately uncompress it as it gets downloaded. (This avoids creating a temporary file that would need to be deleted afterwards).

    mv nwjs-* nw-linux-32
    Unfortunately for us, the name of the folder in the tarball we just downloaded and extracted isn't quite right, so we MoVe it to the correct place.

    mv nw-linux-32/nw nw-linux-32/pia_nw
    PIA also expects it to be called pia_nw instead of just "nw", so we fix that too. (Technically this one could have been shorter if I spelled it as mv nw-linux-32/{nw,pia_nw} where the shell would have expanded the {} as the two paths. You can test it with echo mv nw-linux-32/{nw,pia_nw} to see how it would have expanded, printing the result to the terminal with echo instead of running mv)
  • ...leaving only to explain '*' and 'pipe' to the newcomer.

    it's turtles all the way down!
  • Brilliant - thanks for this.
    It is a shame that this has been known for such a long time, but the linux app has not been updated to fix this issue
  • pellcorp said:
    Brilliant - thanks for this.
    It is a shame that this has been known for such a long time, but the linux app has not been updated to fix this issue
    Unfortunately the developers only support Ubuntu with its default Unity/Gnome session at the moment, which uses the AppIndicator support instead of the legacy tray. As a result, it works according to their requirements so it's at the bottom of the priority list. There are plans for this to change later on along with other major updates however.
  • edited December 2017
    KDE Plasma 5 bug tray icon... http://polariton.ad-l.ink/79SxJTBMr/image.png


  • Hi @berimornils,

    I've run some tests for you, and it seems that what happens is that it's actually correct icon, it's just extremely big and the tray only displays a tiny center part of it.

    You can workaround this with this script:
    cd ~/.pia_manager/pia_tray_files/img
    for i in tray_*.png; do
        convert $i -resize 21x21$i
    done

    The icons will then be about the correct size. You may need to change the size (the 21x21 part) to match the icon size of your tray area.
  • I never had this problem until just recently.  In that directory all I have is another directory labeled nw-win.  The latest version of the files listed above appears to be nwjs-v0.39.0-linux-x64.  Does this fix no longer work for the system-tray issue?  Anyone have an idea what does?
  • @SiggyMarvin - This thread is almost 2 years old. Your best bet is to start a new discussion simply because the thread title says [solved].
  • This was just for the legacy as well, the new PIA version no longer uses nwjs and instead uses QT. If you are having display issues, send us a ticket to our support. https://www.privateinternetaccess.com/helpdesk/new-ticket
Sign In or Register to comment.