FAQ > OS > HOW TO > SHORTCUT > MORE



MORE SHORTCUT EXAMPLES

JAVA APPS

Some applications (like Bible Desktop) are .jar files; meaning they run in Java. The command for the "Exec" property of the shortcut is java -jar followed by the path to the .jar file. OpenJDK Java 8 is already included in the C4C Lubuntu ReSpin. If you use "stock" Lubuntu and need to install open-source Java;

Go to Menu --> System Tools --> LXTerminal (or Ctrl+Alt+T)
Type (or copy and paste):
sudo apt-get install openjdk-8-jre[Enter] or [return]
More info on the OpenJDK website. Oracle's Java is here.

Icon Note: Like many apps that are not specifically packaged .deb files, most Java apps don't come with their own icon. Much of the time, you'll have to find an icon (and maybe "tweak" it to your liking), or create one yourself.

All shortcuts are .desktop entry files. They must be saved as xxxx.desktop


- Java App Example 1 -

Password Dragon is a free password manager encrypted with BlowfishJ algorithm; requiring you only to remember the master password. It's also portable. You can run it from a USB flash drive. Learn more about Password Dragon from their website.

Password Dragon Java App
[Desktop Entry]
Name=Password Dragon
Comment=Password Manager
Exec=java -jar /usr/share/passworddragon/passworddragon.jar
Icon=/usr/share/passworddragon/icons/pwd.png
Terminal=false
Type=Application
Categories=GTK;Utility;
StartupNotify=true


Put the shortcut in the menu: Edit --> Copy (Ctrl+C), or Cut (Ctrl+X) the .desktop file shortcut. Open the File Manager (PCManFM) as root. Go to Menu --> System Tools --> LXTerminal (or Ctrl+Alt+T) and type: gksu pcmanfm View files in a Directory Tree. Navigate to /usr/share/applications. Select the applications folder on the left pane. Edit --> Paste (Ctrl+V) the .desktop file into applications. Close open windows. If the menu entry doesn't appear, type (or copy and paste): lxpanelctl restart in LXTerminal, or log out and log back in.


- Java App Example 2 -

Minecraft While Minecraft is not free - it is undeniably popular. A building, crafting, adventuring game that despite it's blocky graphics; needs a pretty decent graphics card and plenty of RAM. See the Minecraft website and a Minecraft review at Christian Gaming Zone.

Minecraft Java App
[Desktop Entry]
Name=Minecraft
Exec=java -jar /usr/share/Minecraft/Minecraft.jar
Comment=Adventure Game
Icon=/usr/share/Minecraft/minecraft.png
NoDisplay=false
Categories=GTK;Game;
Type=Application


Put the shortcut in the menu: Edit --> Copy (Ctrl+C), or Cut (Ctrl+X) the .desktop file shortcut. Open the File Manager (PCManFM) as root. Go to Menu --> System Tools --> LXTerminal (or Ctrl+Alt+T) and type: gksu pcmanfm View files in a Directory Tree. Navigate to /usr/share/applications. Select the applications folder on the left pane. Edit --> Paste (Ctrl+V) the .desktop file into applications. Close open windows. If the menu entry doesn't appear, type (or copy and paste): lxpanelctl restart in LXTerminal, or log out and log back in.



Shortcuts to .sh files

SHELL SCRIPTS
Several popular applications start with shell scripts (.sh files). You'll need to change permissions to enable a shell script to run. Either via command-line...
Go to Menu --> System Tools --> LXTerminal (or Ctrl+Alt+T)
Type (or copy and paste):
chmod +x /path/to/the/shellscript.sh[Enter] or [return]
Or, the graphical way. Right-click (F12) the .sh file, choose "Properties" from the drop-down menu and click the "Permissions" tab:

Execute Nobody

Then change the "Execute" drop-down to "Anyone"

Execute Anyone


A shortcut to a shell script is a bit more complicated then what we've covered so far. The "Exec" property tells PCManFM it's a shell script that's being run, changes the directory to the one in which the shell script resides and finally executes the shell script.


- Shell Script Example -

Lux Delux

For our shortcut to a shell script example, we use a popular game called Lux Delux; like Risk, but with more than 800 different maps. Try to take over the world, over and over (30 times for free). Lux Delux features 11 different computer opponents (an almost unlimited number of real opponents) and easy to setup network / Internet play. See the Lux Delux homepage and map gallery

[Desktop Entry]
Version=1.0
Type=Application
Name=Lux Delux
GenericName=Lux Delux
Comment=World Domination
Icon=/usr/share/LuxDelux/LuxIcon.png
Exec=sh -c "cd /usr/share/LuxDelux/; ./LuxDelux.sh"
Categories=GTK;Game;


All shortcuts are .desktop entry files. They must be saved as xxxx.desktop

Put the shortcut in the menu: Edit --> Copy (Ctrl+C), or Cut (Ctrl+X) the .desktop file shortcut. Open the File Manager (PCManFM) as root. Go to Menu --> System Tools --> LXTerminal (or Ctrl+Alt+T) and type: gksu pcmanfm View files in a Directory Tree. Navigate to /usr/share/applications. Select the applications folder on the left pane. Edit --> Paste (Ctrl+V) the .desktop file into applications. Close open windows. If the menu entry doesn't appear, type (or copy and paste): lxpanelctl restart in LXTerminal, or log out and log back in.




Shortcuts to .html files

WEBPAGES
To make a shortcut to a webpage, simply add the word firefox before the path to the webpage (whether that be an address on the Internet or an .html page on your hard drive) in the "Exec" property. Several Mozilla command-line arguments will also be adhered to, like -new-window and -new-tab. And of course; if you're making several webpage shortcuts - you'll probably want to have separate icons for each.

All shortcuts are .desktop entry files. They must be saved as xxxx.desktop

- Webpage Example -

Firefox
[Desktop Entry]
Name=Bible Knowlege Games
Exec=firefox http://www.savingus.org/knowledg/
Comment=Games for Group Play
Icon=/usr/share/icons/lubuntu/apps/48/firefox.svg
NoDisplay=false
Categories=GTK;Network;WebBrowser;
Type=Application


Put the shortcut in the menu: Edit --> Copy (Ctrl+C), or Cut (Ctrl+X) the .desktop file shortcut. Open the File Manager (PCManFM) as root. Go to Menu --> System Tools --> LXTerminal (or Ctrl+Alt+T) and type: gksu pcmanfm View files in a Directory Tree. Navigate to /usr/share/applications. Select the applications folder on the left pane. Edit --> Paste (Ctrl+V) the .desktop file into applications. Close open windows. If the menu entry doesn't appear, type (or copy and paste): lxpanelctl restart in LXTerminal, or log out and log back in.


Top