Create a Core Wallet desktop entry on Ubuntu Desktop

From DigiByte Wiki
Revision as of 15:37, 4 May 2020 by Krilov (talk | contribs) (test edit to see what the "Summary" field is..)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

What is a desktop entry file?

A desktop entry file is used as a shortcut file. It retains information of a certain script or application on your Ubuntu machine, such as file location, icon, version, type, description etc.[1]

Why would you want a entry file?

You don’t need to start your wallet from the terminal. With a entry file set up you can simply start the DigiByte Core Wallet directly from the Ubuntu application browser.
Using something like Gnome Tweaks you can easily search and pick your desktop entry for autostart when you log in to your machine.

Create desktop entry

Download icon

You don’t need to use a icon, but it makes for better looks and makes the wallet easier to find when browsing your applications.
Use the application browser or press Ctrl+Alt+T to open a terminal.
Navigate to your DigiByte Core wallet location and create a new folder called desktop. Navigate to your new folder and download the icon with the wget command.

Example:

cd ~/digibyte-7.17.2/
mkdir desktop
cd desktop
wget https://github.com/DigiByte-Core/digibyte-logos/raw/master/Symbol%20Icons/512x512.png

Writing the file

It's important to perform these terminal commands as the user that is going to be using the wallet on the machine, no other users will have access to your desktop entry.
Create a new file called digibyte-qt.desktop in ~/.local/share/applications/ using the touch command.

touch ~/.local/share/applications/digibyte-qt.desktop

The ~ represents your home folder(/home/USERNAME/).

Edit the file using a text editor.
For this example we will use the nano command from terminal.

nano ~/.local/share/applications/digibyte-qt.desktop

Paste the following:

[Desktop Entry]
Name=DigiByte Core Wallet
Comment=Official DigiByte Core Wallet for Linux
Terminal=false
Type=Application
Categories=Crypto;Network;Qt;
Keywords=dgb;core;digibyte;wallet;node;desktop;
Exec=
Icon=

Write the full path to digibyte-qt after Exec=.

Example:

Exec=/home/USERNAME/digibyte-7.17.2/bin/digibyte-qt


Now add the full path to your icon after Icon=.

Example:

Icon=/home/USERNAME/digibyte-7.17.2/desktop/512x512.png

USERNAME should be replaced with your own username.
Now save the file, and you're done!
To save the file in nano, press Ctrl+X followed by Y to confirm, then press Enter.
If you have performed all of these steps correctly, you should now be able to launch the DigiByte Core Wallet from the application browser on your Ubuntu Desktop.

Extra notes

  • .desktop files can also be placed in /usr/share/applications/ but it is not recommended as any user on your machine could technically get access to your wallet.
  • This solution should work on most KDE & GNOME distro's according to freedesktop documentation.