this post was submitted on 06 Jan 2024
36 points (60.1% liked)
linuxmemes
21281 readers
182 users here now
Hint: :q!
Sister communities:
Community rules (click to expand)
1. Follow the site-wide rules
- Instance-wide TOS: https://legal.lemmy.world/tos/
- Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
2. Be civil
- Understand the difference between a joke and an insult.
- Do not harrass or attack members of the community for any reason.
- Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
- Bigotry will not be tolerated.
- These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
3. Post Linux-related content
- Including Unix and BSD.
- Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of
sudo
in Windows.
- No porn. Even if you watch it on a Linux machine.
4. No recent reposts
- Everybody uses Arch btw, can't quit Vim, and wants to interject for a moment. You can stop now.
Please report posts and comments that break these rules!
Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't fork-bomb your computer.
founded 1 year ago
MODERATORS
Being real, why DON'T distros just have the ability to do the installation if you double-click whatever file is downloaded?
I feel like we should have either option - download and double-click or just use the command line.
I mean, what else would double-clicking a .tar.gz file or an appimage do than install it (yes, I know, look into the archive, but really - how often is that the desired thing to do)? So, therefore, why don't we just have it install the files that are downloaded?
This is a legit question btw, I really don't know the answer
How would the distro tell if the tar.gz is a program or just a bunch of compressed files? I tend to use tar files for compression rather than for distributing or installing software
Yes, but the header of the file says it's a binary, that is why it gives you the option to run as a program or open as a file. Because the OS knows that you can do either with binaries.
Some file managers might add the +x automatically if you choose to run the binary through the desktop environment (not the terminal)... or ask you if you'd like to mark the file as an executable (i.e. add +x to permissions).
You can't do it the same way with tar, what are you gonna execute, tar is neither a script or an ELF binary. It's like asking for a zip file to be executable, doesn't make sense. You can change the extension to .exe, but it won't run, it's not an exe, no MZ header, nothing 🤷.