Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please provide a zeronet.desktop and zeronet.png file for Linux #18

Open
ghost opened this issue Apr 15, 2017 · 0 comments
Open

Please provide a zeronet.desktop and zeronet.png file for Linux #18

ghost opened this issue Apr 15, 2017 · 0 comments

Comments

@ghost
Copy link

ghost commented Apr 15, 2017

This is a transfer from HelloZeroNet/ZeroNet#831 by @probonopd

Please provide a zeronet.desktop and zeronet.png file for Linux desktop integration.

Ideally also an AppStream metainfo file.

This would allow packagers for Linux to use consistent menu launchers, icons, and metadata, and help here.
Thanks!

@ghost
Copy link
Author

ghost commented Jul 29, 2018

Hi, new contributor here, I know this issue is old but I've worked on it a bit.

In the ZeroBundle folder I created a file ZeroNet.desktop with the following contents:

[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=ZeroNet
Comment=Open, free and uncensorable websites, using Bitcoin cryptography and BitTorrent network
Exec=sh "/path/to/ZeroBundle/ZeroNet.sh"
Icon=/path/to/ZeroBundle/ZeroNet/logo.png
Terminal=false

Obviously you have to replace /path/to/ZeroBundle with its actual location.

logo.png is just an image from the ZeroNet welcome site (1HeLLo4uzjaLetFx6NH3PMwFP3qbRbTf3D) that I placed in the ZeroBundle/ZeroNet/ directory. If you visited/downloaded the site you can find the logo at ZeroBundle/ZeroNet/data/1HeLLo4uzjaLetFx6NH3PMwFP3qbRbTf3D/img/logo.png and copy it from there.

Terminal=false

This option means that ZeroNet.sh will execute in the background. If you change this value to true then ZeroNet.sh would run in a terminal window.

Next, make the desktop file executable (e.g. chmod +x ZeroNet.desktop).

Finally, to have this desktop file appear in the menu launcher, you have to register it as a desktop app.

This webpage says:

Place this file in the /usr/share/applications directory so that it is accessible by everyone, or in ~/.local/share/applications if you only wish to make it accessible to a single user. Which is used should depend on whether your application is installed systemwide or into a user's home directory.

So depending on which of the above options you prefer copy ZeroNet.desktop to either /usr/share/applications or ~/.local/share/applications.

Once you do that an entry for ZeroNet should appear in your menu launcher! You can also double-click the ZeroNet.desktop file to execute it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants