this post was submitted on 17 Aug 2023
31 points (100.0% liked)

Linux

48102 readers
947 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 5 years ago
MODERATORS
 

I keep getting notifications that

bash --login

is a command that has completed from gnome. Is this bad?

I'm not the one running these commands btw.

top 15 comments
sorted by: hot top controversial new old
[–] [email protected] 5 points 1 year ago (1 children)

-l Make bash act as if it had been invoked as a login shell (see INVOCATION below).

--login Equivalent to -l.

This is an excerpt from the bash manpage. So likely no, this isn't a bad thing and this is just GNOME sourcing your environment variables. You need to tell us how frequent these notification are and when they happen (also what GNOME version you're using as well as which distribution you are using). We can't help you if you don't provide that.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (1 children)

I'm on gnome 44.3 on NixOS. I noticed 3 of them but thats it, one of them 3 hours ago and 2 of them 44 minutes ago.

Yeah I checked the manpage but wasn't sure why this would be running by itself.

[–] [email protected] 1 points 1 year ago (1 children)

Really strange... Was there any pattern you could discern from the occurrences?

[–] [email protected] 1 points 1 year ago (1 children)
[–] [email protected] 2 points 1 year ago (1 children)

Then likely you can ignore it, or configure GNOME notifications to not display it to you. You could also seek help in NixOS related forums or continue trying to replicate the issue.

[–] [email protected] 2 points 1 year ago

Alright, thanks for the help :)

[–] [email protected] 3 points 1 year ago

No idea why GNOME is giving you these notifications but it may be a Cron task. Check your crontab

[–] [email protected] 2 points 1 year ago (1 children)

Are you using some kind of IDE application? Or just standard GUI apps?

[–] [email protected] 2 points 1 year ago (2 children)

I guess I'm running emacs and a couple of shell scripts, but mostly gui apps.

[–] [email protected] 2 points 1 year ago (1 children)

Then it might be one of those scripts

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

Yeah, you're right, it happens after my music scraping script finishes (It takes like 30 minutes so I wasn't able to make the connection). I realized this a couple hours ago.

[–] [email protected] 1 points 1 year ago (1 children)

does emacs have an integrated terminal view inside it? Seems like maybe it's just creating a shell for you to use inside the editor or something? Either way, "bash --login" is just a login shell which I think basically just acts like if you had just logged in instead of inheriting most stuff from whatever process launched it. It in't "logging in" like some user account or something. Unlikely that it's something nefarious. At worst, it's just usual buggy linux software interacting in weird ways.

[–] [email protected] 1 points 1 year ago

does emacs have [...] inside it?

Yes, it's emacs.

Seriously, it even has multiple terminal emulators.

[–] [email protected] 2 points 1 year ago

Is this when you open a terminal? It tells me stuff like that when my terminal session is done doing something when I didn't have that windows focused