Start Discord minimized on Linux - provide a CLI switch for that
Please provide a way to start Discord minimized on Linux. For example, provide a command line switch --minimized to start it minimized would do. There's currently no way to do it - or nobody knows how to do it.
https://www.reddit.com/r/discordapp/comments/ar9mbg/linux_how_can_i_start_discord_on_login_minimized/
https://www.reddit.com/r/archlinux/comments/b7fjk5/start_discord_minimized/
-
Yes please! Discord is the only electron app I know that doesn't allow starting minimized.
2 -
Please please please do this!! Would make my life so much easier not having to be interrupted every time I turn on my PC
2 -
I open discord with a command `discord` anyway so changing that to `discord -m` would be fantastic
0 -
Pretty basic feature to be missing... Come on get it done lads
2 -
Had to remove Discord from autostart because this feature is still missing. The Windows version supports it, please support it for Linux too.
0 -
Did a quick google search and i found out Discord does support starting minimised.
https://support.discordapp.com/hc/en-us/community/posts/360048037971-Option-for-Discord-to-start-minimized-on-Linux
quoting user "blitzcrankBot" :
You can use the command line argument --start-minimized
I just tested it, it works perfectly on Ubuntu 18.04 LTS.6 -
You sir are a legend! My life has been saved
1 -
I can confirm it's working. Thank you Partack and blitzcrankBot. The solution was in a newer duplicate thread:
1 -
There is always a way, at all times - always.
With wmctrl and xdotool you can make any application, script or whatever, startup minimzed or not.
sudo apt install wmctrl xdotool python3
Use this snippet and create a python3 add it's path to your startup preferences.
#!/usr/bin/env python3 import subprocess import sys import time subprocess.Popen(["/bin/bash", "-c", sys.argv[1]]) windowname = sys.argv[2] def read_wlist(w_name): try: l = subprocess.check_output(["wmctrl", "-l"]).decode("utf-8").splitlines() return [w.split()[0] for w in l if w_name in w][0] except (IndexError, subprocess.CalledProcessError): return None t = 0 while t < 30: window = read_wlist(windowname) time.sleep(0.1) if window != None: subprocess.Popen(["xdotool", "windowminimize", window]) break time.sleep(1) t += 1
1
Please sign in to leave a comment.
Comments
9 comments