this post was submitted on 18 Mar 2026
7 points (100.0% liked)

Linux

63857 readers
930 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
all 19 comments
sorted by: hot top controversial new old
[–] BananaTrifleViolin@piefed.world 1 points 27 minutes ago* (last edited 20 minutes ago)

Few options off the top of my head:

  • Open a terminal (e.g. Ctrl+Alt+T) and type "firefox -p &". The & operator runs the process in the background so it will continue to run even when the terminal is closed

OR

  • Use your desktops equivalent to windows "run". So for example, on KDE use Krunner (Alt+F2 or Alt+Space usually launches it) and type in "firefox -p"; it usually defaults to running a command. There is also a dedicated "Run Command" plasmoid that can be added to your desktop. On Gnome, I think the "run a command" dialogue will do the same (also Alt+F2 I believe).

OR

  • Add an app entry to your desktops menu for Firefox Profile Manager. On KDE if you type Profile, "Profile Manager - Firefox" already exists as a Krunner action; so you can easily get it from your menu or krunner just typing Profile. If it doesn't exist then you can use your desktop's menu editor to copy the firefox entry and add the -p as the command line argument. On KDE that done most easily by right clicking on the menu icon and selecting "edit applications..." or search for menu editor. Other desktops will be very similar.
[–] sadparty@sh.itjust.works 1 points 28 minutes ago

If you don't want to fiddle with a terminal at all you can just make a keybind/shortcut. Depends on your DE or WM as to how to do that.

[–] yeh74fjic8e5we@lemmy.world 1 points 39 minutes ago* (last edited 38 minutes ago)

In the terminal session you launched firefox from:

Ctrl-Z  # Temporarily suspend process
bg      # Put that process into the background
exit    # Cleanly close the terminal session

Or launch Firefox (or whatever application) with a ’&' at the end to put it in the background from the start.

[–] huf@hexbear.net 1 points 58 minutes ago

if you want to launch a thing from X/wayland, maybe consider getting a run box. there are plenty of options. your desktop environment may already have one.

[–] eldavi@lemmy.ml 11 points 4 hours ago

surround it by nohup and put & at the end of the command.

it would be better to run the command using the key combo of alt + f2 and then putting the command there instead of using a terminal window so that you don't have to bother with nohup.

[–] felsiq@piefed.zip 8 points 4 hours ago (3 children)

I’m not familiar with the -p flag on Firefox but in general, adding & to the end of your command backgrounds it and disown detaches it from your shell so it doesn’t close.

firefox -p &; disown should do what you’re looking for, if I’m understanding you right

[–] non_burglar@lemmy.world 2 points 2 hours ago

You don't need disown if you're closing the terminal. Just

firefox -p &
[–] HubertManne@piefed.social 2 points 3 hours ago

I swear I have done these kindsof things without having an option that was a word. maybe just & im not sure. I just recall doing it and never recall using disown.

[–] tdTrX@lemmy.ml 1 points 2 hours ago (3 children)

~$ firefox -p &; disown bash: syntax error near unexpected token `;'

[–] eager_eagle@lemmy.world 2 points 44 minutes ago

just omit the ;

firefox -p & disown

[–] felsiq@piefed.zip 3 points 2 hours ago (2 children)

Looks like I’ve gotten too spoiled with zsh, I guess that doesn’t work with bash. Doing it in two separate commands should work tho, ie firefox -p & and then disown

[–] CorrenteAlternata@lemmy.blahaj.zone 1 points 52 minutes ago

it should be enough to put a space between & and ; like this: firefox -p & ; disown but I'm not 100% sure.

I'm also very spoiled by zsh, and I also remember encountering this issue.

[–] moonpiedumplings@programming.dev 4 points 4 hours ago (1 children)

If you use kde, you can search for "profile manager", and it will show up, and can be launched from the app menu.

At least works for me. Before this was added, the KDE search/app menu also lets you run commands directly, so I would just run firefox -p in there. No need for a terminal.

[–] HelloRoot@lemy.lol 4 points 4 hours ago* (last edited 4 hours ago)

I'm pretty sure you can just right click the firefox icon and it will have a profile manager menu entry.

Maybe it is just an arch linux thing, but it is defined in the .desktop file in the installed package.

[–] fitgse@sh.itjust.works 2 points 4 hours ago

Instead of disowning use exec or xdg-open

[–] DarrinBrunner@lemmy.world 0 points 4 hours ago (1 children)

Why did the other commenters parse the title as a question? I expected directions from OP.

[–] tofu@lemmy.nocturnal.garden 3 points 4 hours ago

Because it clearly is, despite the missing question mark.