<SOLVED>Why do some launchers point to /opt?

Questions about applications and software
Forum rules
Before you post please read how to get help

LMDE 2 support ends on 1-1-2019
Post Reply
User avatar
Fred Barclay
Level 12
Level 12
Posts: 4158
Joined: Sat Sep 13, 2014 11:12 am
Location: Bumping around in the bush

<SOLVED>Why do some launchers point to /opt?

Post by Fred Barclay » Mon May 09, 2016 12:50 pm

G'day mates! I just noticed that some of the launchers in my menu (MATE) point towards /opt, while the programmes seem to be installled to /usr/bin.

For example, the launcher for thunderbird says this:
/opt/thunderbird/thunderbird %u
while "whereis" says this:

Code: Select all

fred@aussie ~ $ whereis thunderbird
thunderbird: /usr/bin/thunderbird /usr/lib/thunderbird
I get similar results for firefox--maybe some others as well but I haven't found 'em.

The contents of /opt are as follows:

Code: Select all

fred@aussie ~ $ ls /opt
firefox  google  mint-flashplugin-11  palemoon  slimjet  thunderbird
BTW: All of these have either been installed from the repos, with a .deb (slimjet), or with an included installer script (palemoon).
Last edited by Fred Barclay on Tue May 10, 2016 11:41 am, edited 1 time in total.
Image
"Once you can accept the universe as matter expanding into nothing that is something, wearing stripes with plaid comes easy."
- Albert Einstein

User avatar
Flemur
Level 16
Level 16
Posts: 6276
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Why do some launchers point to /opt?

Post by Flemur » Mon May 09, 2016 1:03 pm

Code: Select all

$ ls /opt
XnView	ocenaudio  vuescan

$ which xnview
/usr/bin/xnview

$ cat /usr/bin/xnview
#!/bin/sh
 (script points to /opt/XnView/XnView
XnView and ocenaudio were installed w/synaptic. My slimjet was installed from a .tar.xv on another partition, so doesn't show up here at all.

Why ocenaudio ends up in /opt, and audacity, which performs the same functions, doesn't go in /opt ... ?

Dunno; it sounds "arbitrary and capricious".
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 18.3 Xfce/fluxbox/pulse-less
Xubuntu 17.10/fluxbox/pulse-less

User avatar
killer de bug
Level 14
Level 14
Posts: 5403
Joined: Tue Jul 08, 2008 1:49 pm
Location: Graz, Austria

Re: Why do some launchers point to /opt?

Post by killer de bug » Mon May 09, 2016 2:37 pm

Are you sure they are installed in /usr/bin? :wink:

Code: Select all

KDB@KDB-laptop ~ $ whereis thunderbird
thunderbird: /usr/bin/thunderbird
KDB@KDB-laptop ~ $ ls -la /usr/bin | grep thunderbird
lrwxrwxrwx  1 root     root           28 avril 18 14:46 thunderbird -> /opt/thunderbird/thunderbird
KDB@KDB-laptop ~ $ ls -la /usr/bin | grep firefox
lrwxrwxrwx  1 root     root           20 avril 30 10:58 firefox -> /opt/firefox/firefox
They are listed in /usr/bin because it where your system expect to find them. That doesn't mean they are installed there. :)
Image
If it ain't broke, fix it until it is.

User avatar
Fred Barclay
Level 12
Level 12
Posts: 4158
Joined: Sat Sep 13, 2014 11:12 am
Location: Bumping around in the bush

Re: Why do some launchers point to /opt?

Post by Fred Barclay » Mon May 09, 2016 3:46 pm

killer de bug wrote:Are you sure they are installed in /usr/bin? :wink:

Code: Select all

KDB@KDB-laptop ~ $ whereis thunderbird
thunderbird: /usr/bin/thunderbird
KDB@KDB-laptop ~ $ ls -la /usr/bin | grep thunderbird
lrwxrwxrwx  1 root     root           28 avril 18 14:46 thunderbird -> /opt/thunderbird/thunderbird
KDB@KDB-laptop ~ $ ls -la /usr/bin | grep firefox
lrwxrwxrwx  1 root     root           20 avril 30 10:58 firefox -> /opt/firefox/firefox
They are listed in /usr/bin because it where your system expect to find them. That doesn't mean they are installed there. :)
Hmmm... I have the same result. Weird!
Firejail is fussing about it so I need to do some more digging.
Image
"Once you can accept the universe as matter expanding into nothing that is something, wearing stripes with plaid comes easy."
- Albert Einstein

User avatar
killer de bug
Level 14
Level 14
Posts: 5403
Joined: Tue Jul 08, 2008 1:49 pm
Location: Graz, Austria

Re: Why do some launchers point to /opt?

Post by killer de bug » Mon May 09, 2016 4:04 pm

Your system expects to find the launcher in /usr/bin and hence the link to that folder. But the soft is installed in /opt in this case. :)
Here is some explanation about /opt: http://www.tldp.org/LDP/Linux-Filesyste ... l/opt.html

I think it comes from the old days where tar archives were often used to install softwares.



What's the issue with Firejail?
Image
If it ain't broke, fix it until it is.

User avatar
Fred Barclay
Level 12
Level 12
Posts: 4158
Joined: Sat Sep 13, 2014 11:12 am
Location: Bumping around in the bush

Re: <SOLVED>Why do some launchers point to /opt?

Post by Fred Barclay » Tue May 10, 2016 11:41 am

Thanks KDB and Flemur. :)

The firejail issue must have been a temporary bug or error on my part--it's all working well now, but 'firejail --x11=xpra /opt/thunderbird/thunderbird' didn't launch with x11 sandboxing.
Image
"Once you can accept the universe as matter expanding into nothing that is something, wearing stripes with plaid comes easy."
- Albert Einstein

Post Reply

Return to “Software & Applications”