signalapp / Signal-Desktop

A private messenger for Windows, macOS, and Linux.
https://signal.org/download
GNU Affero General Public License v3.0
14.59k stars 2.66k forks source link

Missing documentation for command line options #3518

Open Edu4rdSHL opened 5 years ago

Edu4rdSHL commented 5 years ago

Bug Description

Documentation for command line options is missing.

Steps to Reproduce

  1. Search documentation for command line options.

Actual Result:

Doesn't exist documentation for command line options.

Expected Result:

Documentation is available.

Screenshots

Platform Info

Signal Version: all desktop versions.

Operating System: GNU/Linux ArchLinux.

Linked Device Version: doesn't matter.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

fdutheil commented 3 years ago

I second this, I just discovered by accident that the critical "--disable-gpu" exists (while not being exposed in application settings panel). Looking for documentation on other knobs and found nothing. Moreover, if this switch really exists and is not implemented at the Signal App level, I can't find it in Electron's documentation either.

fdutheil commented 3 years ago

Hello fellas, I understand the intention behind the massive close of tickets. BUT. This one is NOT a feature request.

I haven't seen any serious IT project stating that documentation is optional, have you? ^^

josh-signal commented 3 years ago

Oops sorry, this was marked as a bug and not meant to be closed.

Redsandro commented 2 years ago

Similarly, signal-desktop is missing minimal embedded documentation for command-line arguments. In Linux, it's good practice to accept both -h and --help to trigger minimal documentation without starting the app. It's also good practice in general to not start the app when bad command line arguments are provided.

So the minor annoyances when using this app for the first time are as follows.

I think the original issue by @Edu4rdSHL can be amended as follows:

  1. Search documentation for command line arguments.
  2. Try -h, --help and /? command line arguments.

If there are no command line arguments worth noting, the --help should at least explain this and write something about the electron options being installed in the launcher by default, like --no-sandbox

Here is the output from a very similar app called element-desktop:

element-desktop --help
Options:
  --profile-dir {path}: Path to where to store the profile.
  --profile {name}:     Name of alternate profile to use, allows for running multiple accounts.
  --devtools:           Install and use react-devtools and react-perf.
  --no-update:          Disable automatic updating.
  --hidden:             Start the application hidden in the system tray.
  --help:               Displays this help message.
And more such as --proxy, see:https://electronjs.org/docs/api/command-line-switches

So in case it helps anyone else coming here when googling "signal-desktop command line arguments", that last line tells us to check this for electron command line arguments.

Unfortunately though unrelated, the flag --hidden doesn't work for Signal-desktop, something I was initially attempting to do and what lead me here.

DidierLoiseau commented 2 years ago

@Redsandro FYI there are --start-in-tray and --use-tray-icon options

Victor239 commented 2 years ago

I think --use-tray-icon is redundant if using --start-in-tray.

Redsandro commented 2 years ago

Are these Electron flags or Signal-specific flags?

hubyhuby commented 2 years ago

Any news on the available command line arguments ? Her is a listing of what I found so far : --disable-gpu or --in-process-gpu --use-tray-icon --no-sandbox

kcpr commented 2 years ago

I would also be grateful for the list of options. For now I'm looking for something that would disable the tray icon (as it became a default I believe). Anyone knows it maybe?

vsessink commented 1 year ago

When documenting the undocumented switches, this could also be the place to mention a few quirks resulting from these very options: when using "--use-tray-icon", Signal will emit the "minimizeToTrayNotification--body" message, saying you can "change this [the tray icon showing] in Signal settings" - which is currently not true under Linux.

quazgar commented 1 year ago

Adding another undocumented CLI option: group invite links: An invite which looks like this:
https://signal.group/#12345-abcde
translates to this command line call, which is valid even when there is already a running instance:
signal-desktop sgnl://signal.group/#12345-abcde

l-mb commented 1 year ago

After a recent update, the signal-desktop app on openSUSE wouldn't properly start. When I looked for ways how to disable the GPU options via some obscure config file, the search led me here to find out that there's a handy command line option for it!

So yes, please consider adding --help :-)

retiolus commented 7 months ago

Any updates on this? Kind of sucks that signal-desktop --help doesn't return anything...

seefood commented 6 months ago

Another useful commandline I was happy to discover: signal-desktop --user-data-dir=$HOME/.config/Signal-1 running another instance of the client if you have more than one user/number to login with. found here: #1720 Then scrolling down I also saw a --profile option, I have a feeling it does the same in a slightly different way.

storm49152 commented 2 months ago

The --profile option was implemented in a forked repo, which was only built for Windows, and archived on 6 oct 2022. There is no use in trying it now.

Multiple instances