Tdesktop: Document command line parameters

Created on 19 May 2016  Â·  17Comments  Â·  Source: telegramdesktop/tdesktop

The desktop client supports a few command line options. It would be nice if those could be documented. So far I have extracted from the source:

-testmode
-debug
-many
-key
-autostart
-fixpreveious
-cleanup
-crash
-noupdate
-tosettings
-startintray
-sendpath
-workdir

I would gladly help on writing some of that documentation and create a PR when I am done. But some of these parameters I need to follow through the source to figure out what they do. So far those I have _not_ taken a look at these:

-testmode
-key
-fixpreveious
-cleanup
-crash
-sendpath

Eventually someone with more code inside can name a few keywords what they do.

Plus, where would you prefer to have that info? I would add it to the README.md or eventually create a command-line-switches.md. Also added to the Wiki?

easy pick enhancement help wanted

Most helpful comment

lmao, second time

All 17 comments

@dragetd Some of them are for internal service use and I doubt all should be documented. For example "-cleanup" which performs some cleanup before complete uninstall of tdesktop windows version.

@dragetd
It would be useful to document some of the parameters! I think the documentation should be added to the wiki and maybe link from the readme to the wiki.

I'll write some things down and add it to the wiki next week. :)

I think Telegram run with "--help" option should do as expected: show help.

Hey there!

We're automatically closing this issue since there was no activity in this issue since 363 days ago. We therefore assume that the user has lost interest or resolved the problem on their own. Closed issues that remain inactive for a long period may get automatically locked.

Don't worry though; if this is in error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!

(Please note that this is an automated comment.)

@dragetd so what about PR?

A lot of life (tm) happened. :-(
But if anyone else wants to take a shot… it is not hard to go through the source and check what parameter is doing what.

@auchri The issue isn't fixed yet :c

Hey there!

We're automatically closing this issue since there was no activity in this issue since 374 days ago. We therefore assume that the user has lost interest or resolved the problem on their own. Closed issues that remain inactive for a long period may get automatically locked.

Don't worry though; if this is in error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!

(Please note that this is an automated comment.)

lmao, second time

I just tried "-startintray" and it still opens the window. Is the initial text of this tracker outdated or is this a different Telegram version than the one that can be downloaded from telegram.org?
(I'm on Debian.)

@Fabian42 startintray is broken on linux, see #422 and its duplicates

Thanks for telling me. But the tray icon is broken for me anyway. It used to crash Cinnamon on every click except the first one after boot, now it only appears between an update and the next reboot.

I just tried -sendpath, because someone claimed that I could programmatically send files using that. Turns out I can't, but here's at least my observations from randomly trying things:

  • The argument alone does nothing, the command just launches Telegram regularly.
  • The first argument after it is interpreted as a path, Telegram is opened with "Choose recipient…" text over the chat area and clicking a chat in the list tries to send that file to that chat.
  • If the file doesn't exist, "Could not send empty file: " is shown after clicking a chat (and after it gets opened).
  • Further arguments afterwards are ignored (haven't tested the ones in the list in the original post).
  • There seems to be no way to specify a chat to send the file to from the command line.

@Fabian42 Use pyautogui

lmao, second time

Exclude help wanted labels

Was this page helpful?
0 / 5 - 0 ratings