[–] sakuramboo 0 points 2 points (+2|-0) ago  (edited ago)

What desktop environment are you using?

EDIT: Figured I would say as much as I can.

For starters, I hope you put the files in /opt instead of your home directory.

KDE

Right click on application menu icon and select "Edit Applications..." From there, fill in the information as as file path and icon.

Gnome3

You need to create a .desktop file. Below is a sample .desktop file.

[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Application Name
Comment=Application description
Icon=/path/to/icon.xpm
Exec=/path/to/application/executable
Terminal=false
Categories=Tags;Describing;Application

Replace the specific information with that pertaining to your program, save it as waterfox.desktop and place it in either /usr/share/applications/ to make it global or ~/.local/share/applications/ to make it for only your user account.

Note: KDE also generates a .desktop file, but they at least give you a gui app to do it

Fluxbox

Edit the file ~/.fluxbox/menu and pick where in the menu you want to the entry to be, then put this in the next line...

[exec] Waterfox {/opt/waterfox/waterfox-bin}

This assumes that you installed it in /opt, which you should have.

[–] Erotic_Monkey [S] 0 points 0 points (+0|-0) ago 

I restarted the system and it now works!

So, the only thing I think I need to do differently is add the apps to the /opt folder. Why is that and how do I do it if I do not have permission?..

[–] sakuramboo 0 points 1 points (+1|-0) ago  (edited ago)

/opt is used for third-party programs that are not made available via the official repositories. In order to put files there you need to be root. You can move the folder with the following command...

sudo mv ~/Downloads/waterfox /opt/

Assuming that is the location for where you have it. You will also be prompted for your password. Type it in, hit enter, and it's moved.

If you want to read more on the filesystem hierarchy, read this and scroll down to section 3.1.3.

Test the binary by trying to run it from the terminal. If there are any issues, it should tell you in the terminal. Odds are, you might need to adjust the permissions. Everything should be readable by everyone and the binaries executable by everyone, but no one should be able to write to any of the files there.

You can do that with the following commands...

sudo chmod -R 444 /opt/waterfox
sudo chmod 555 /opt/waterfox/waterfox
sudo chmod 555 /opt/waterfox/waterfox-bin

IIRC, there is also a shell script that would need 555 permissions, too. Again, verify it by trying to run it from the terminal. If all is successful, you are done.

The point of putting programs in /opt is to make it globally accessible, meaning, other user accounts can launch it. While you are free to run binaries from your home directory, if for whatever reason you need to make a new user account, you will need to constantly move the binaries around and adjust ownership every time. This makes management a nightmare. While it may not seem like a hassle, it's a bad habit that can bite you in the ass later on. Better to get into the good habits early on.

Also, there shouldn't be a need to restart the system when you make changes to your DE. A simple logout/login should be enough.

Lastly, you should also at a symlink to the binary in one of the $PATH locations.

sudo ln -s /opt/waterfox/waterfox /usr/local/bin/waterfox

It might need to point to waterfox-bin, i forget which one is the actual binary file.

Now, you won't have to type out the complete path when trying to launch it. You can just type waterfox and it will launch because /usr/local/bin should in your $PATH environment variable. To verify if it's there run the following...

echo $PATH

and you will see a bunch of directory paths separated by colons.

[–] Erotic_Monkey [S] 0 points 0 points (+0|-0) ago 

Thanks for the comprehensive reply!

For starters, I hope you put the files in /opt instead of your home directory.

I 'dragged' them into the Home directory because it says I do not have permission to move them to /opt (whatever file that is).

Right click on application menu icon and select "Edit Applications..." From there, fill in the information as as file path and icon.

I did this and it does add it to the menu, but nothing happens when I use the menu link to launch the app. I am sure I am using the correct icon / file to open the app, because if I go directly to the Waterfox folder and click on the same icon that I am selecting to be in the menu using the 'Edit Applications' link, it launches.

[–] Erotic_Monkey [S] 0 points 0 points (+0|-0) ago 

I did this and it does add it to the menu, but nothing happens when I use the menu link to launch the app. I am sure I am using the correct icon / file to open the app, because if I go directly to the Waterfox folder and click on the same icon that I am selecting to be in the menu using the 'Edit Applications' link, it launches.

I restarted the system and it now works!

So, the only thing I think I need to do differently is add the apps to the /opt folder. Why is that and how do I do it if I do not have permission?

[–] Atarian 0 points 1 points (+1|-0) ago 

That's not how you install software on Linux. Try installing it from the package manager.

[–] Erotic_Monkey [S] 0 points 0 points (+0|-0) ago 

Waterfox was not available through the package manager, how do I tell Linux that I have downloaded a new Zip folder containing a new program and I want Linux to install and manage that new program.

It is a shame it is not just 'right click - add to package manager'.....

[–] Atarian 0 points 1 points (+1|-0) ago  (edited ago)

That's a deliberate choice.

Is Waterfox not in any upstream repos you could use?

EDIT: Literally top search result provided this link:

https://forums.linuxmint.com/viewtopic.php?t=260726

Go to the last post where it describes adding the repository to APT. This means your Waterfox installation will be managed by your package manager and kept up to date.

Any problems, hit us up.

[–] TerrifiedTyphlosion 0 points 1 points (+1|-0) ago 

Linux Mint? If you're using MATE environment...

Open Menu > Control Center/Settings > Main Menu > New Item. The way I set it up, Waterfox is in my Downloads folder, so I put as the command:

/home/terrifiedtyphlosion/Downloads/waterfox/waterfox

The last "waterfox" in this line was the name of the thing I click on to run Waterfox.

I think Cinnamon environment should be the same process.

[–] boredTech 0 points 1 points (+1|-0) ago 

xfce : main menu > settings > menu editor