Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!panix!not-for-mail From: Grant Edwards Newsgroups: comp.lang.python Subject: Re: Survey -- Move To Trash function in Python? Date: Thu, 14 May 2015 18:11:24 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 35 Message-ID: References: <5554c318$0$12999$c3e8da3$5496439d@news.astraweb.com> NNTP-Posting-Host: 67-130-15-94.dia.static.qwest.net X-Trace: reader1.panix.com 1431627084 211 67.130.15.94 (14 May 2015 18:11:24 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Thu, 14 May 2015 18:11:24 +0000 (UTC) User-Agent: slrn/1.0.1 (Linux) Xref: csiph.com comp.lang.python:90623 On 2015-05-14, Dave Farrance wrote: > Steven D'Aprano wrote: > >>I'd like to do a little survey, and get a quick show of hands. >> >>How many people have written GUI or text-based applications or scripts where >>a "Move file to trash" function would be useful? >> >>Would you like to see that in the standard library, even if it meant that >>the library had feature-freeze and could gain no more functionality? > > It's bad enough when things are filesystem-dependent but this is > OS-dependent or even desktop-version-dependent in the case of Linux > distros, so not easy. Or even file-manager dependent. I think some desktops support multiple file-manager (at least XFCE always used to) -- and there's probably no requirement that they all handle "trash" the same way. For this to work "right" you're going to need to be able to figure out which desktop you're using: Linux systems often have multiple desktops available. Most of mine only have one, but some of them have as many as three. Then you might have to determine which file-manager you're using. Some of my desktops use file browsers that don't have any concept of "trash". And some of them don't have any file-browsers or "trash" folders at all. Sounds pretty nasty... -- Grant Edwards grant.b.edwards Yow! MMM-MM!! So THIS is at BIO-NEBULATION! gmail.com