FS#76058 - [discord] move application root from /opt/discord to /usr/share/discord

Attached to Project: Community Packages
Opened by Rubin Simons (rubin55) - Thursday, 29 September 2022, 17:23 GMT
Last edited by Filipe Laíns (FFY00) - Thursday, 29 September 2022, 22:55 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To morganamilo (morganamilo)
Filipe Laíns (FFY00)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No



I installed about 1100 packages today (I'm migrating to Arch from Void, old-time user from 2007). I noted that the discord package is one of just three in my admittedly rather large list of packages that installs in /opt (the other two I noted are maven and ghidra). I note that most packages that have something like an application root, place it under /usr/share (dotnet, java, wireshark, ant, etc many many).

In the interest of consistency, I would request that the discord package is installed under /usr/share/discord instead of in /opt/discord.

I'm creating an issue for the maven and ghidra packages as well.
This task depends upon

Closed by  Filipe Laíns (FFY00)
Thursday, 29 September 2022, 22:55 GMT
Reason for closing:  Won't implement
Additional comments about closing:  Discord is a full-fledge closed source application, therefore it should not live in /usr.

Even if it went to /usr, it would be to /usr/lib, not /usr/share, as it's architecture dependent.

If you think there is something I overlook, feel free to request to re-open.
Comment by loqs (loqs) - Thursday, 29 September 2022, 19:20 GMT
You can find the full list of packages using /opt/ with
# pacman -Fy # update the files databases
$ pacman -F /opt/ # currently gives me 52 packages
Comment by Rubin Simons (rubin55) - Thursday, 29 September 2022, 19:35 GMT
Yes, I checked that too. That's 52 packages out of 13308. Also, it's actually ~38 base packages (intel-one is all one base package, various -data or -next packages, etc).

Just from my perspective: I install 1100 packages, 4 end up in opt. That's 0.36%. for all 52 against 13308 it's 0.0039%!

Also I would argue that generally, /opt, like /usr/local is the domain of custom, unpackaged software usually.
Comment by Toolybird (Toolybird) - Thursday, 29 September 2022, 22:47 GMT
The Arch Package Guidelines [1] are a bit vague about this. The old FHS (which AFAICT is not strictly adhered to these days) also has a blurb [2]. I personally think closed source binary shite doesn't deserve to live under /usr and therefore /opt is perfect.

[1] https://wiki.archlinux.org/title/Arch_package_guidelines#Directories
[2] https://www.pathname.com/fhs/pub/fhs-2.3.html#OPTADDONAPPLICATIONSOFTWAREPACKAGES