How to find the command of an app to autostart it?

how to find the command of an app to autostart it?
When I try to add any app in application autostart, it asks for the command. How to find out that command? I'm used to Microsoft Windows, where apps are easy to find the location of. Sorry I'm new to linux. For example, I need to autostart Brave browser, which I installed using Zorin 17.2 lite software app..

many thanks for any help you can give me.

1 Like

So this is a flatpak? Hit CTRL+ALT+T to open the terminal.
Enter the command:

flatpak list --app

Find Brave. Copy the Application ID (highlight it CTRL+SHIFT+C). The command to run it is

flatpak run application-id-that-you-copied

Well you can try that. It works for making keyboard shortcuts but I don't know if it will work for application autostart because I don't know what that is.

are you on Lite ?
right click the brave app , click edit application . you'll see the command there

btw. how did you install brave , through software centre (which is the flatpak version) ?
I suggest installing the deb. version rather. Even brave suggests to install deb. rather than flatpak...

let us know if you help to install deb.
:sunglasses:

sorry only read post again now and saw you installed through software app...
i would suggest removing that brave install through software centre , then install brave like this:

sudo apt install curl

sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg

echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main"|sudo tee /etc/apt/sources.list.d/brave-browser-release.list

sudo apt update

sudo apt install brave-browser

sorry it's more info for what you asked , but you can thank me later lol

1 Like

You don't need anything too complicated.
You just have to put the Brave desktop file in the "/your_home/.config/autostart" folder

This is another good example that shows the importance of having a properly working Properties button. Not only to discover the package name but also how it's invoked, so that it can be added to the auto-start list (or change the launch options):

3 Likes

I've found out an easy way. I Right-clicked the app icon in the task bar, and selected "edit launcher". I found the command line there.
Thanks to your help.

2 Likes

Many thanks for the wealth of info. I'll do what you said.. but what is flatpak and deb? and why deb is better?

deb isn't necessary better , but it's better in Brave's case
difference between flatpak/snap/appimg/deb is about dependencies ect.
someone here with more in depth knowledge could answer you better

Basically .deb files have been around a lot longer than flatpak, snap and App Image, plus .deb packages get integrated into the system, the others don't and have to be updated separately. Glad you found the command via the launcher in Menu properties. I nearly posted that but wasn't sure if it was still available as I don't use Zorin desktop or Gnome in Zorin, just Plasma and Enlightenment.

1 Like

The debian package, file extension .deb is the default standard package format on Debian based systems.
Flatpak is an alternative format that carries all dependencies it needs with it which enables a piece of software to not rely on the system dependencies, but as a trade off, brings a lot of bloat.
Flatpaks also run containerized, which essentially double-sandboxes them. Flatpaks cannot communicate with the system that they are installed on. This can lead to a large variety of problems with browsers or apps that need system access in order to download/upload files, access an external drive, and so on.
Using a .deb format package would ensure that the Browser can communicate with all necessary parts of the system normally.

For me, personally, Flatpak seems like a good idea on paper. But in practice brings more problems than it solves. My first action on a fresh install is to remove Flatpak entirely. I only use the standard default .deb package format and save myself from all the headaches.

5 Likes

Same here, always check if there is a flatpak installed or not. If it is it will be removed asap.

However, i do like the .appimage idea.

I need to do as you do. How do I remove flatpak please?
and do I still can use Software app to install apps? or must I use terminal only?

sudo apt remove --purge flatpak

You can install by any means you find the most comfortable and reliable.
Software Store
Synaptic
Terminal

1 Like

Great. I uninstalled Ftatpak. Now do I need to install deb? or is it pre-installed?
And when I use the software app, does it now use deb instead of flatpak?

No, you do not need to install anything for package management.
Debian Packages are the standard in the Repositories and are the vast majority of the packages in the Universe Repo.
The Software Store will install using those packages from the Main Repository.

1 Like

don't need to install deb.
i never use the software store .
when i want to install something i go to their website and look for instructions on how to install with terminal (which would be the .deb version)

if you do want to use the software store , you can check which version they have available by clicking the drop down arrow under version , but most times it'll only be flatpak...

1 Like

I checked now after uninstalling flatpak, it now says "snapstore" under Brave install button. What is that?

snap is kinda like flatpak
flatpak is completely open source , while the back end of snap is proprietary and controlled by canonical.
why not just install brave through terminal with commands given earlier?
it'll work 100%

I stand corrected.
Some packages will require a terminal install. Brave Browser is one of them.
Gnome Software Store checks the repositories for the package and Brave does not place a .deb format package in the repositories. Instead, you must add their own repository, then download and install Brave.

sudo apt install curl

sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg

echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main"|sudo tee /etc/apt/sources.list.d/brave-browser-release.list

sudo apt update && sudo apt install brave-browser

Is there a reason some developers run a repo but don't include it in the .deb? Just a security courtesy, in not adding repos? Some do (Edge, which I checked it to help another user here, Slack, Steam if installing from their .deb), and this is the second one I've seen/seen mentioned that has the user do it by hand (the other being ProtonVPN). Notably, both ProtonVPN and Brave are privacy focused.