Closed Bug 1745570 Opened 3 years ago Closed 3 years ago

TB started via a shell script passing "--ProfileManager" and "--safe-mode" ignores command line "--safe-mode" option

Categories

(Thunderbird :: General, defect)

Thunderbird 91
defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: it, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Steps to reproduce:

I typically start thunderbird via a shell script like this:

export LC_TIME=de_DE.UTF-8
/usr/bin/thunderbird "$*"

Actual results:

Launching via this script with both -ProfileManager and --safe-mode,
--safe-mode gets ignored.

Expected results:

All CLI options should be handled also when called via a shell script passing them in.

Walt does this reproduce for you on any version?

Flags: needinfo?(wls220spring)

Sorry, I'm not familiar with shell scripts.

On my Fedora Linux, I have the Fedora 91.3.0 build, the Thunderbird supplied 91.4.0, 96.0b1 Beta and 97.0a1 Daily installed.

The Profile Manager automatically opens if I type thunderbird --safe-mode with the Fedora default profile already selected.
Clicking the Start Thunderbird button opens the "Thunderbird Troubleshoot Mode" dialog.
Clicking the Continue in Troubleshoot Mode button opens the Fedora build in safe mode.

The same behavior if I use the paths to the other versions.
I don't need the -ProfileManager switch, but using thunderbird -ProfileManager --safe-mode also worked, as does -p --safe-mode.

Flags: needinfo?(wls220spring)

Whether -P (--ProfileManager) is needed depends on the current system-wide TB settings and is not the point here.

If you type, e.g., "thunderbird --ProfileManager --safe-mode" in a shell, this works of course.
Again, the point is that the TB launcher goes wrong if such an invocation is done from within a shell script (likely also Windows batch file).

perhaps related to Bug 1745814?

Component: Untriaged → General
Summary: TB started via a shell script passing "--ProfileManager" and "--safe-mode" ignores "--safe-mode" option → TB started via a shell script passing "--ProfileManager" and "--safe-mode" ignores command line "--safe-mode" option

There's no problem in Thunderbird. It's just a bug in your script. ("$@" is the correct thing to do.)

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.