Comments

9 comments

  • tur1ng

    Yes please! Discord is the only electron app I know that doesn't allow starting minimized.

    2
  • Nicholas

    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
  • Nicholas

    I open discord with a command `discord` anyway so changing that to `discord -m` would be fantastic

    0
  • bringonblink

    Pretty basic feature to be missing... Come on get it done lads

    2
  • Kalanur

    Had to remove Discord from autostart because this feature is still missing. The Windows version supports it, please support it for Linux too.

    0
  • Partack

    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
  • Nicholas

    You sir are a legend! My life has been saved

    1
  • Kalanur

    I can confirm it's working. Thank you Partack and blitzcrankBot. The solution was in a newer duplicate thread:

    https://support.discordapp.com/hc/en-us/community/posts/360048037971-Option-for-Discord-to-start-minimized-on-Linux

    1
  • travipies

    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.