chrishuan9 / deluge-extractor

Modified extractor plugin for the deluge torrent client
GNU General Public License v3.0
38 stars 25 forks source link

Force 7zip Window Minimized #3

Open justinlosh opened 8 years ago

justinlosh commented 8 years ago

Is it possible to have the 7zip pop open minimized? If you're in a full screen program, it minimizes that full window when the 7zip window opens.

chrishuan9 commented 7 years ago

I will look into this as soon as I have fixed issue #1 and #2 - I'm currently really pressed for time. According to superuser.com 7z does not support a quite/silent extraction but let me explore other options.

spreadred commented 7 years ago

I haven't made any Deluge plugins before (I can't even seem to find decent documentation), but do we have access to Python libraries from within the scope of the plugin or are we restricted to whatever is made available to use via the Twisted torrent library?

I ask because, it seems like we could switch just using subprocess.Popen and setting the startupinfo flag to hide the window?

Something along these lines:

https://stackoverflow.com/questions/1813872/running-a-process-in-pythonw-with-popen-without-a-console

Or...could we use python archive libraries to perform the extractions ourselves?

spreadred commented 7 years ago

https://pypi.python.org/pypi/pyunpack seems like a promising extraction library supporting many, many formats.

Oshayr commented 6 years ago

https://superuser.com/questions/282140/redirect-7-zips-command-line-output-to-dev-null-on-windows-when-extracting-a shows ways to do this by the command line