FG
💻 Software

How to automatically execute a shell script when logging into Ubuntu

Fresh5 days ago
Mar 15, 202666308 views
Confidence Score0%
0%

Problem

How do I get a script to execute automatically when I log in? Not when the machine starts up, and not for all users, but only when I (or any specific user with the script) login via the GNOME UI. From reading elsewhere I thought it was in my home directory, but for me it has no effect. When I manua…

Error Output

.bash_profile

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to automatically execute a shell script when logging into Ubuntu

Low Risk

You could simply add the following command into System > Preferences > Startup Applications: That should do the trick ;)

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment