Follow

- Hey, did you know that in Linux, you can type the name of an app in Terminal and launch it?

- Oh, neat!

*fires up GNOME desktop* Ooh, let’s try this!

$ files .

- Oh, sorry, not that. That’s nautilus.

- Oh, uh-uh… ok, how about…

$ web

Ah, yes, no, that’s epiphany!

🤔

Cue: “you’re holding it wrong” and “it’s an upstream issue” in 3… 2…

Show thread
@aral

Well it's handled with "open". Try "open https://duckduckgo.com".

Oh, right, it's "xdg-open", which will probably change once Wayland becomes mainstream. You should know that, dumb user!

@sirikon @aral wait, why would it change once Wayland becomes mainstream?

@bugaevc @aral

Sorry, thought that the X in XDG related to XServer, as usual, but seems like I was wrong, but not 100% sure.

@sirikon @aral I believe XDG stands for Cross-Desktop Group; XDG stuff in general is not specific to X (in fact, some XDG stuff is even specific to Wayland). xdg-open works here on Wayland :)

@sirikon @aral I'm on Wayland since last year and xdg-open works fine.

@aral Nah man, that's a GNOME issue for obfuscating the real name of the applications. Good take 13/10

@aral I'm pretty sure you can create aliases :)

@aral @mauro ah ok, i know you can create menu short cuts, you can also create symlinks (symbolic links) which would link a file or folder to a location elsewhere, so doing cd myapp in your home folder would change to a directory elsewhere on the system where your app is stored, say /use/share/ for example.

Not an expert so not commenting further on sym links.
@mauro @aral yes you can

alias ls='ls -l' for example

I think you do this in your .bashrc file (hidden due to period . ) so just comment some out or add more.
@aral This is also very handy when a application fails to do anything if selected from a menu or icon, running from a terminal can reveal useful information as to why it may not be working (missing libraries) or even if it runs properly it may reveal other potential issues.
@aral I mean, since everything is so free and modular, you can't have multiple applications calling themselves the same

@aral Normally 'view' is mapped to something useful for text files... that is, useful if you remember how to exit vim. But yes, as a text adventure, the command line is lacking.

@feonixrift Ah, if it was a text adventure, it would be perfect (you want those to be challenging) ;)

@aral ok, i'll admit, 'help' was more helpful than anticipated. Maybe I should try viewing this as an adventure more often...

@feonixrift @aral :q or :w :q if you want to save (write) then quit

@aral
This is exactly my problem with the terminal, as a medium-weight, non-developer, self-taught Linux-er. Caja, Nautilus, etc. And then I have to go digging to figure out what the terminal name is, since it's often not exactly the same as the name in the menu.

@aral Good point, there's plenty of paper cuts like this around and it's good that you are mentioning this.

This one might be easy to solve: add aliases to bash.rc which point towards the defaults. So web could point towards Epiphany with something like alias web=/usr/bin/epiphany.

Sounds like low-hanging fruit to make a distro more user-friendly :) Btw there are probably not enough interaction-designers using FLOSS & noticing these things AND willing/able to fix them. So shall we do this?

@BjornW @aral But why should you let the user use the terminal? In Gnome at least you press the super key and type the first letters of the activity you want. Like 'web' selects Firefox and Ephinany is on the right of that, cause it's not the default, but still present.

@jeroenpraat the issue @aral mentioned is that if the user does the same on the terminal, for example, typing web, it does not work. So it would be nice (not to mention consistent) if the defaults set for the desktop GUI are also used in the terminal. If a user decides to use the terminal she can type web and the default browser will launch on the default desktop.

@BjornW Oh OK. It's about consistency. Well than a symlink or an alias, is the right thing to do.

@aral

@jeroenpraat yep and it would be cool if distro's using Gnome defaults would do this for the terminal automagically out-of-the-box :)

@aral

@aral I don't get it. Someone told you, that you can type the name of an app in a Terminal to launch it, which is obviously wrong? That's not the fault of GNOME or Linux, you should blame the person who did the initial statement instead.

@cosmo But I don’t understand computers. They’re such complex things. Can you help me learn?

Sign in to participate in the conversation
Aral’s Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!