title: TypeError: bufsize must be an integer?
body: <p>I am making a small program where I can open a file from any part of the computer with it's default editor. This is my code:</p>
  
  <pre><code>from os import *
  import subprocess
  print("Welcome to my File Finder. Here you can search for a file and open it.")
  file_name = str(input("Your file's name:"))
  print(subprocess.call(["xdg-open"], file_name))]
  </code></pre>
  
  <p>But instead of opening, it return this error:</p>
  
  <pre><code>Traceback (most recent call last):
  File "Important_tester_projects.py", line 6, in &lt;module&gt;
    print(subprocess.call(["xdg-open"], file_name))
  File "/usr/lib/python3.6/subprocess.py", line 267, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.6/subprocess.py", line 609, in __init__
    raise TypeError("bufsize must be an integer")
  TypeError: bufsize must be an integer
  </code></pre>
  
  <p>I have googled to find a solution for this error, but I can't find any that seems to solve my Problem. How can fix my error?</p>
  
  <p>NOTE: My Linux OS uses XFCE, not Gnome.</p>