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.
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
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
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
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.
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!
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!
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.
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.
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)
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.
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?
Comments
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.
I had the same problem and the solution works fine.
Thank you
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
ps: it's so friendly that a two keyword search is all that is necessary: linux mv
l.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!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.
To break down what the little snippet does:
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).
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.
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).
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.
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 withecho 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)it's turtles all the way down!
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
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:
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.