linuxnewbie.org.gif
Tuesday, 12-Dec-2000 10:38:16 EST
Newbized Help Files articles discussion board bookshelf sensei's log advertising info
4 Steps to a Mozilla Shortcut
Written By: Rage_A_Holic

Sensei's Note:
This NHF assumes you are using KDE and have a need to make shortcuts on your desktop (ala Windoze). It covers basic icon linking with programs that need console commands to run them.

1) Write a bash shell script.

2) Make the script executable.

3) Add Mozilla icons to your /usr/share/icons file

4)Create a desktop shortcut


1) Write a bash shell script (not as hard as it sounds)

In a text editor (kwrite, kedit, vi, emacs), type the following:

#!/bin/bash

cd /path/to/package

exec ./mozilla

Save your new script as mozilla.script or whatever you'd like and place it in your /home/username-here directory (you don't need the .script prefix, but I like to use it for organizational purposes). Change /path/to/package to reflect the location of the package folder that was created during the Mozilla installation. Mine is in /home/brian/package.

2) Make the script executable

In a terminal, type the following: chmod +x mozilla.script

What you've done here is you've used the chmod +x filename command to make the script executable.

3) Add Mozilla icons to your /usr/share/icons file

You can find a Mozilla desktop icon in the package/ folder. The pathname is package/icons/mozicon50.xpm...there is also a mozicon16.xpm, but it's microscopic. In order to make the Mozilla icon available, you need to move it to /usr/share/icons (the default icon location in most RedHat-based distros). To do this, you need to have root privileges...so either use the "su" command or login as root. At a terminal, type the following:

cp /pathname/to/package/icons/mozicon50.xpm /usr/share/icons

4) Create a desktop shortcut

KDE:

Open KFM and cd to /home/user/Desktop. Right-click in the window and choose: new application. Name the shortcut appropriately and then you need to assign a path to the program; but in our case, we are going to use the path to the script instead of the path to the program. Since the script is saved in /home/username-here, the path to the script would be /home/username-here/name.script. By making the shortcut point towards the script, a click on the shortcut executes the script that in turn, executes the ./mozilla script.

Select the mozicon50 icon and you're done.

GNOME:

I haven't used GNOME yet, so I can't provide instructions on how to create icons in the GNOME/Enlightenment environment. If anyone can fill me in, I'll update the NHF and give credit where credit is due.

[-NHF Control Panel-]
The Linux Channel at internet.com
Linux Planet
Linux Today
Linux Central
Linuxnewbie.org
PHPBuilder
Just Linux
Linux Programming
Linux Start
BSD Today
Apache Today
Enterprise Linux Today
BSD Central
All Linux Devices
SITE DESCRIPTIONS
[-What's New-]
Order a Linuxnewbie T-Shirt
Easy Webcam NHF
Directory Navigation NHF
Installing Snort 1.6.3 on SuSE 6.x-7.x
Customizing vim
The SysVinit NHF
Installing ALSA for the VT82C686 integrated sound
USB Creative Video Blaster II for Linux
Configuring the Intellimouse Explorer in XFree86 V4+
The beginnings of a distro NHF
Getting Past Carnivore?
Getting and Installing PGP
Getting your ATI Rage 128 Working
How to create a multiple partition system
Using Fdisk
Introduction to Programming in C/C++ with Vim
Adding a Hard drive in Linux -- In five steps
Installing ALSA for the Yamaha DS-XG Sound Card
Getting your Diamond Rio Mp3 Player to work with Linux
Bash Programming Cheat Sheet
Installing NVIDIA Drivers for Mandrake
Setting up Portsentry
Hard Drive Speed Tweak for Linux
Sensei's Log
Chat room
Join: Linuxnewbie.org SETI Black Belts!
Send in your news
Click the image to add Linuxnewbie.org to your MyNetscape Page
[-LNO Newsletter-]

[-Archive-]
The beginnings of a distro NHF
Connecting to the Internet using KPPP
Getting your SBLive to work
Unreal Tournament NHF
LWE Day 2 Pictures
LWE Day 1 Pictures
The LNO FAQ!
WoW (Words of Wisdom)
Other sites news
What is Linux?
What is Linux? part deux (ups & downs)
Search newsgroups
The List
ALS Report
Feedback Form
jobs.linuxtoday.com.gif
Match: Format: Sort by:
Search:
[-Quick Links-]

Copyright 2000 internet.com Corp. All Rights Reserved. Legal Notices Privacy Policy

internet.com.gif