Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.mac.system > #122103 > unrolled thread
| Started by | Ed Norton <norton@nowhere.com> |
|---|---|
| First post | 2019-02-09 07:32 -0500 |
| Last post | 2019-02-10 09:38 -0800 |
| Articles | 11 — 5 participants |
Back to article view | Back to comp.sys.mac.system
Empty Trash Anomaly Ed Norton <norton@nowhere.com> - 2019-02-09 07:32 -0500
Re: Empty Trash Anomaly Jolly Roger <jollyroger@pobox.com> - 2019-02-09 22:01 +0000
Re: Empty Trash Anomaly ErikRS <mac-dane@is.invalid> - 2019-02-09 23:31 +0100
Re: Empty Trash Anomaly Ed Norton <norton@nowhere.com> - 2019-02-09 18:56 -0500
Re: Empty Trash Anomaly Percival John Hackworth <pjh@nanoworks.com> - 2019-02-09 18:52 -0800
Re: Empty Trash Anomaly Ed Norton <norton@nowhere.com> - 2019-02-10 05:24 -0500
Re: Empty Trash Anomaly J Burns <burns@nospam.com> - 2019-02-10 11:26 -0500
Re: Empty Trash Anomaly Ed Norton <norton@nowhere.com> - 2019-02-10 11:51 -0500
Re: Empty Trash Anomaly J Burns <burns@nospam.com> - 2019-02-10 12:48 -0500
Re: Empty Trash Anomaly Ed Norton <norton@nowhere.com> - 2019-02-10 20:48 -0500
Re: Empty Trash Anomaly Percival John Hackworth <pjh@nanoworks.com> - 2019-02-10 09:38 -0800
| From | Ed Norton <norton@nowhere.com> |
|---|---|
| Date | 2019-02-09 07:32 -0500 |
| Subject | Empty Trash Anomaly |
| Message-ID | <0001HW.D88432A90B1E5790B02919BF@news.astraweb.com> |
I mentioned in an earlier post that occasionally after playing a video with VLC, closing VLC, and moving the file to the trash, I could not empty the trash. Some incredulity was expressed. I have now managed to capture an example: https://nofile.io/f/wZGkR9oT62q/Screen+shot.jpg As you can see the Empty Trash command claims that the file is open but lsof doesn't find it. What is Empty Trash seeing that lsof isn't? I know how to delete the file, I'm just curious as to the problem. -- Ed
[toc] | [next] | [standalone]
| From | Jolly Roger <jollyroger@pobox.com> |
|---|---|
| Date | 2019-02-09 22:01 +0000 |
| Message-ID | <gc90u5Fjv0vU4@mid.individual.net> |
| In reply to | #122103 |
On 2019-02-09, Ed Norton <norton@nowhere.com> wrote: > I mentioned in an earlier post that occasionally after playing a video > with VLC, closing VLC, and moving the file to the trash, I could not > empty the trash. Some incredulity was expressed. No it wasn't. As I recall, a few people commented telling you why that might happen. Typically it's because VLC (or another app you were using to access the file in question) left the file in an open state rather than closing it. That's not the definition of "incredulity" where I come from. : ) -- E-mail sent to this address may be devoured by my ravenous SPAM filter. I often ignore posts from Google. Use a real news client instead. JR
[toc] | [prev] | [next] | [standalone]
| From | ErikRS <mac-dane@is.invalid> |
|---|---|
| Date | 2019-02-09 23:31 +0100 |
| Message-ID | <q3nkc5$3cr$1@solani.org> |
| In reply to | #122124 |
Jolly Roger wrote: > On 2019-02-09, Ed Norton <norton@nowhere.com> wrote: >> I mentioned in an earlier post that occasionally after playing a video >> with VLC, closing VLC, and moving the file to the trash, I could not >> empty the trash. Some incredulity was expressed. > > No it wasn't. As I recall, a few people commented telling you why that > might happen. Typically it's because VLC (or another app you were using > to access the file in question) left the file in an open state rather > than closing it. That's not the definition of "incredulity" where I come > from. : ) So I recall it too.:-) - The easiest way to solve the problem is to restart 'Finder' and then empty the trash... - Or you can use an app like 'MainMenu''s feature to 'Force Empty Trash'. It's not only VLC that sometimes thinks that the file isn't closed. - Even Amadeus Pro does this. Amadeus is likely to think that the icon still is in use and therefore won't empty the trash. Cheers, Erik Richard -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Erik Richard Sørensen <mac-daneRE@MOVEstofanet.dk> NisusWriter - The Future In Multilingual Text Processing - www.nisus.com Openoffice.org - The Modern Productivity Solution - www.openoffice.org ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[toc] | [prev] | [next] | [standalone]
| From | Ed Norton <norton@nowhere.com> |
|---|---|
| Date | 2019-02-09 18:56 -0500 |
| Message-ID | <0001HW.D884D2DF0020C3ECB02919BF@news.astraweb.com> |
| In reply to | #122125 |
On Sat, 9 Feb 2019 17:31:32 -0500, ErikRS wrote (in article <q3nkc5$3cr$1@solani.org>): > > Jolly Roger wrote: >> On 2019-02-09, Ed Norton <norton@nowhere.com> wrote: >>> I mentioned in an earlier post that occasionally after playing a video >>> with VLC, closing VLC, and moving the file to the trash, I could not >>> empty the trash. Some incredulity was expressed. >> >> No it wasn't. As I recall, a few people commented telling you why that >> might happen. Typically it's because VLC (or another app you were using >> to access the file in question) left the file in an open state rather >> than closing it. That's not the definition of "incredulity" where I come >> from. : ) > > So I recall it too.:-) - The easiest way to solve the problem is to > restart 'Finder' and then empty the trash... - Or you can use an app > like 'MainMenu''s feature to 'Force Empty Trash'. > > It's not only VLC that sometimes thinks that the file isn't closed. - > Even Amadeus Pro does this. Amadeus is likely to think that the icon > still is in use and therefore won't empty the trash. > > Cheers, Erik Richard Thanks, JR and Erik. I'm not asking how to get rid of the file. I know several ways to do that. I'm just trying to understand the problem. In my case when I try to empty the trash, VLC has quit so VLC can't think the file is still open. And lsof doesn't find the file, so the system doesn't think it is open. I've only ever seen this with files I have opened in VLC. I don't use Amadeus frequently enough to have noticed it there. I don't understand which icon you are referring to. The icon for VLC is in it's package, right? And the Finder displays the icon for the file based on the application that is designated to open it and/or the type of file it is. In this case, it is the VLC icon. The displayed icon is part of the Finder's database, not part of the file. I dragged the file out of the trash and changed the opening application to QuickTime, put it back into the trash showing the QuickTime icon, and it still doesn't empty. That suggests that it isn't the icon. I'm not anal-retentive about emptying the trash. That's easy enough to do. But if it's a VLC bug I'd like to report it. And I'd like to supply them with a little more information than "This happens sometimes" :) -- Ed
[toc] | [prev] | [next] | [standalone]
| From | Percival John Hackworth <pjh@nanoworks.com> |
|---|---|
| Date | 2019-02-09 18:52 -0800 |
| Message-ID | <0001HW.220FC95E048ECF6515301A2CF@news.individual.net> |
| In reply to | #122134 |
On 09-Feb-2019, Ed Norton wrote (in article<0001HW.D884D2DF0020C3ECB02919BF@news.astraweb.com>): > On Sat, 9 Feb 2019 17:31:32 -0500, ErikRS wrote > (in article <q3nkc5$3cr$1@solani.org>): > > > > > Jolly Roger wrote: > > > On 2019-02-09, Ed Norton<norton@nowhere.com> wrote: > > > > I mentioned in an earlier post that occasionally after playing a video > > > > with VLC, closing VLC, and moving the file to the trash, I could not > > > > empty the trash. Some incredulity was expressed. > > > > > > No it wasn't. As I recall, a few people commented telling you why that > > > might happen. Typically it's because VLC (or another app you were using > > > to access the file in question) left the file in an open state rather > > > than closing it. That's not the definition of "incredulity" where I come > > > from. : ) > > > > So I recall it too.:-) - The easiest way to solve the problem is to > > restart 'Finder' and then empty the trash... - Or you can use an app > > like 'MainMenu''s feature to 'Force Empty Trash'. > > > > It's not only VLC that sometimes thinks that the file isn't closed. - > > Even Amadeus Pro does this. Amadeus is likely to think that the icon > > still is in use and therefore won't empty the trash. > > > > Cheers, Erik Richard > > Thanks, JR and Erik. I'm not asking how to get rid of the file. I > know several ways to do that. I'm just trying to understand the > problem. In my case when I try to empty the trash, VLC has quit so VLC > can't think the file is still open. And lsof doesn't find the file, so > the system doesn't think it is open. > > I've only ever seen this with files I have opened in VLC. I don't use > Amadeus frequently enough to have noticed it there. > > I don't understand which icon you are referring to. The icon for VLC > is in it's package, right? And the Finder displays the icon for the > file based on the application that is designated to open it and/or the > type of file it is. In this case, it is the VLC icon. The displayed > icon is part of the Finder's database, not part of the file. > > I dragged the file out of the trash and changed the opening application > to QuickTime, put it back into the trash showing the QuickTime icon, > and it still doesn't empty. That suggests that it isn't the icon. > > I'm not anal-retentive about emptying the trash. That's easy enough to > do. But if it's a VLC bug I'd like to report it. And I'd like to > supply them with a little more information than "This happens > sometimes" :) Go back and read the posts again. Have someone explain the concept of "some app left a file open and won't close it until you quit the app". Given your responses to the advise given, just reboot your machine. That's probably the least annoying thing you can do and it will solve your problem. With a sledge hammer. -- DeeDee, don't press that button! DeeDee! NO! Dee...
[toc] | [prev] | [next] | [standalone]
| From | Ed Norton <norton@nowhere.com> |
|---|---|
| Date | 2019-02-10 05:24 -0500 |
| Message-ID | <0001HW.D88565F20036324FB02919BF@news.astraweb.com> |
| In reply to | #122158 |
On Sat, 9 Feb 2019 21:52:14 -0500, Percival John Hackworth wrote (in article <0001HW.220FC95E048ECF6515301A2CF@news.individual.net>): > On 09-Feb-2019, Ed Norton wrote > (in article<0001HW.D884D2DF0020C3ECB02919BF@news.astraweb.com>): > >> On Sat, 9 Feb 2019 17:31:32 -0500, ErikRS wrote >> (in article <q3nkc5$3cr$1@solani.org>): >> >>> >>> Jolly Roger wrote: >>>> On 2019-02-09, Ed Norton<norton@nowhere.com> wrote: >>>>> I mentioned in an earlier post that occasionally after playing a video >>>>> with VLC, closing VLC, and moving the file to the trash, I could not >>>>> empty the trash. Some incredulity was expressed. >>>> >>>> No it wasn't. As I recall, a few people commented telling you why that >>>> might happen. Typically it's because VLC (or another app you were using >>>> to access the file in question) left the file in an open state rather >>>> than closing it. That's not the definition of "incredulity" where I come >>>> from. : ) >>> >>> So I recall it too.:-) - The easiest way to solve the problem is to >>> restart 'Finder' and then empty the trash... - Or you can use an app >>> like 'MainMenu''s feature to 'Force Empty Trash'. >>> >>> It's not only VLC that sometimes thinks that the file isn't closed. - >>> Even Amadeus Pro does this. Amadeus is likely to think that the icon >>> still is in use and therefore won't empty the trash. >>> >>> Cheers, Erik Richard >> >> Thanks, JR and Erik. I'm not asking how to get rid of the file. I >> know several ways to do that. I'm just trying to understand the >> problem. In my case when I try to empty the trash, VLC has quit so VLC >> can't think the file is still open. And lsof doesn't find the file, so >> the system doesn't think it is open. >> >> I've only ever seen this with files I have opened in VLC. I don't use >> Amadeus frequently enough to have noticed it there. >> >> I don't understand which icon you are referring to. The icon for VLC >> is in it's package, right? And the Finder displays the icon for the >> file based on the application that is designated to open it and/or the >> type of file it is. In this case, it is the VLC icon. The displayed >> icon is part of the Finder's database, not part of the file. >> >> I dragged the file out of the trash and changed the opening application >> to QuickTime, put it back into the trash showing the QuickTime icon, >> and it still doesn't empty. That suggests that it isn't the icon. >> >> I'm not anal-retentive about emptying the trash. That's easy enough to >> do. But if it's a VLC bug I'd like to report it. And I'd like to >> supply them with a little more information than "This happens >> sometimes" :) > > Go back and read the posts again. Have someone explain the concept of "some > app left a file open and won't close it until you quit the app". > > Given your responses to the advise given, just reboot your machine. That's > probably the least annoying thing you can do and it will solve your problem. > With a sledge hammer. > > I apologize if my posts have not been clear. *I don't care about deleting the file and am not looking for advice how to do so.* What I am trying to understand is why, if it has been left open after the app has quit, lsof doesn't find it. -- Ed
[toc] | [prev] | [next] | [standalone]
| From | J Burns <burns@nospam.com> |
|---|---|
| Date | 2019-02-10 11:26 -0500 |
| Message-ID | <q3pjbq$j6k$1@dont-email.me> |
| In reply to | #122175 |
On 2/10/19 5:24 AM, Ed Norton wrote: > On Sat, 9 Feb 2019 21:52:14 -0500, Percival John Hackworth wrote > (in article <0001HW.220FC95E048ECF6515301A2CF@news.individual.net>): > >> On 09-Feb-2019, Ed Norton wrote >> (in article<0001HW.D884D2DF0020C3ECB02919BF@news.astraweb.com>): >> >>> On Sat, 9 Feb 2019 17:31:32 -0500, ErikRS wrote >>> (in article <q3nkc5$3cr$1@solani.org>): >>> >>>> >>>> Jolly Roger wrote: >>>>> On 2019-02-09, Ed Norton<norton@nowhere.com> wrote: >>>>>> I mentioned in an earlier post that occasionally after playing a video >>>>>> with VLC, closing VLC, and moving the file to the trash, I could not >>>>>> empty the trash. Some incredulity was expressed. >>>>> >>>>> No it wasn't. As I recall, a few people commented telling you why that >>>>> might happen. Typically it's because VLC (or another app you were using >>>>> to access the file in question) left the file in an open state rather >>>>> than closing it. That's not the definition of "incredulity" where I come >>>>> from. : ) >>>> >>>> So I recall it too.:-) - The easiest way to solve the problem is to >>>> restart 'Finder' and then empty the trash... - Or you can use an app >>>> like 'MainMenu''s feature to 'Force Empty Trash'. >>>> >>>> It's not only VLC that sometimes thinks that the file isn't closed. - >>>> Even Amadeus Pro does this. Amadeus is likely to think that the icon >>>> still is in use and therefore won't empty the trash. >>>> >>>> Cheers, Erik Richard >>> >>> Thanks, JR and Erik. I'm not asking how to get rid of the file. I >>> know several ways to do that. I'm just trying to understand the >>> problem. In my case when I try to empty the trash, VLC has quit so VLC >>> can't think the file is still open. And lsof doesn't find the file, so >>> the system doesn't think it is open. >>> >>> I've only ever seen this with files I have opened in VLC. I don't use >>> Amadeus frequently enough to have noticed it there. >>> >>> I don't understand which icon you are referring to. The icon for VLC >>> is in it's package, right? And the Finder displays the icon for the >>> file based on the application that is designated to open it and/or the >>> type of file it is. In this case, it is the VLC icon. The displayed >>> icon is part of the Finder's database, not part of the file. >>> >>> I dragged the file out of the trash and changed the opening application >>> to QuickTime, put it back into the trash showing the QuickTime icon, >>> and it still doesn't empty. That suggests that it isn't the icon. >>> >>> I'm not anal-retentive about emptying the trash. That's easy enough to >>> do. But if it's a VLC bug I'd like to report it. And I'd like to >>> supply them with a little more information than "This happens >>> sometimes" :) >> >> Go back and read the posts again. Have someone explain the concept of "some >> app left a file open and won't close it until you quit the app". >> >> Given your responses to the advise given, just reboot your machine. That's >> probably the least annoying thing you can do and it will solve your problem. >> With a sledge hammer. >> >> > > I apologize if my posts have not been clear. *I don't care about > deleting the file and am not looking for advice how to do so.* > > What I am trying to understand is why, if it has been left open after > the app has quit, lsof doesn't find it. > Quicklook Manager can lock a file... at least it could in the past. qlmanage -r will reset it.
[toc] | [prev] | [next] | [standalone]
| From | Ed Norton <norton@nowhere.com> |
|---|---|
| Date | 2019-02-10 11:51 -0500 |
| Message-ID | <0001HW.D885C0D1004B7E65B02919BF@news.astraweb.com> |
| In reply to | #122180 |
On Sun, 10 Feb 2019 11:26:32 -0500, J Burns wrote (in article <q3pjbq$j6k$1@dont-email.me>): > On 2/10/19 5:24 AM, Ed Norton wrote: >> On Sat, 9 Feb 2019 21:52:14 -0500, Percival John Hackworth wrote >> (in article <0001HW.220FC95E048ECF6515301A2CF@news.individual.net>): >> >>> On 09-Feb-2019, Ed Norton wrote >>> (in article<0001HW.D884D2DF0020C3ECB02919BF@news.astraweb.com>): >>> >>>> On Sat, 9 Feb 2019 17:31:32 -0500, ErikRS wrote >>>> (in article <q3nkc5$3cr$1@solani.org>): >>>> >>>>> >>>>> Jolly Roger wrote: >>>>>> On 2019-02-09, Ed Norton<norton@nowhere.com> wrote: >>>>>>> I mentioned in an earlier post that occasionally after playing a video >>>>>>> with VLC, closing VLC, and moving the file to the trash, I could not >>>>>>> empty the trash. Some incredulity was expressed. >>>>>> >>>>>> No it wasn't. As I recall, a few people commented telling you why that >>>>>> might happen. Typically it's because VLC (or another app you were using >>>>>> to access the file in question) left the file in an open state rather >>>>>> than closing it. That's not the definition of "incredulity" where I come >>>>>> from. : ) >>>>> >>>>> So I recall it too.:-) - The easiest way to solve the problem is to >>>>> restart 'Finder' and then empty the trash... - Or you can use an app >>>>> like 'MainMenu''s feature to 'Force Empty Trash'. >>>>> >>>>> It's not only VLC that sometimes thinks that the file isn't closed. - >>>>> Even Amadeus Pro does this. Amadeus is likely to think that the icon >>>>> still is in use and therefore won't empty the trash. >>>>> >>>>> Cheers, Erik Richard >>>> >>>> Thanks, JR and Erik. I'm not asking how to get rid of the file. I >>>> know several ways to do that. I'm just trying to understand the >>>> problem. In my case when I try to empty the trash, VLC has quit so VLC >>>> can't think the file is still open. And lsof doesn't find the file, so >>>> the system doesn't think it is open. >>>> >>>> I've only ever seen this with files I have opened in VLC. I don't use >>>> Amadeus frequently enough to have noticed it there. >>>> >>>> I don't understand which icon you are referring to. The icon for VLC >>>> is in it's package, right? And the Finder displays the icon for the >>>> file based on the application that is designated to open it and/or the >>>> type of file it is. In this case, it is the VLC icon. The displayed >>>> icon is part of the Finder's database, not part of the file. >>>> >>>> I dragged the file out of the trash and changed the opening application >>>> to QuickTime, put it back into the trash showing the QuickTime icon, >>>> and it still doesn't empty. That suggests that it isn't the icon. >>>> >>>> I'm not anal-retentive about emptying the trash. That's easy enough to >>>> do. But if it's a VLC bug I'd like to report it. And I'd like to >>>> supply them with a little more information than "This happens >>>> sometimes" :) >>> >>> Go back and read the posts again. Have someone explain the concept of "some >>> app left a file open and won't close it until you quit the app". >>> >>> Given your responses to the advise given, just reboot your machine. That's >>> probably the least annoying thing you can do and it will solve your >>> problem. >>> With a sledge hammer. >>> >>> >> >> I apologize if my posts have not been clear. *I don't care about >> deleting the file and am not looking for advice how to do so.* >> >> What I am trying to understand is why, if it has been left open after >> the app has quit, lsof doesn't find it. >> > Quicklook Manager can lock a file... at least it could in the past. > > qlmanage -r > > will reset it. Thanks. I'll give that a try the next time it happens. But in that case, wouldn't lsof find the file open by the Quicklook application? -- Ed
[toc] | [prev] | [next] | [standalone]
| From | J Burns <burns@nospam.com> |
|---|---|
| Date | 2019-02-10 12:48 -0500 |
| Message-ID | <q3po54$kdi$1@dont-email.me> |
| In reply to | #122184 |
On 2/10/19 11:51 AM, Ed Norton wrote: > On Sun, 10 Feb 2019 11:26:32 -0500, J Burns wrote >>> >>> What I am trying to understand is why, if it has been left open after >>> the app has quit, lsof doesn't find it. >>> >> Quicklook Manager can lock a file... at least it could in the past. >> >> qlmanage -r >> >> will reset it. > > Thanks. I'll give that a try the next time it happens. But in that > case, wouldn't lsof find the file open by the Quicklook application? > It will while it's running, but apparently it is, or was, possible for Quicklook to leave a lock on the file afterward. Is it only .mkv files that are a problem? It's a container for lots of formats. I wonder of running one of those formats with VLC might invoke an Apple process that will keep the file flagged even after it's closed. I'm talking through my hat!
[toc] | [prev] | [next] | [standalone]
| From | Ed Norton <norton@nowhere.com> |
|---|---|
| Date | 2019-02-10 20:48 -0500 |
| Message-ID | <0001HW.D8863EB10068FEECB03139BF@news.astraweb.com> |
| In reply to | #122188 |
On Sun, 10 Feb 2019 12:48:18 -0500, J Burns wrote (in article <q3po54$kdi$1@dont-email.me>): > On 2/10/19 11:51 AM, Ed Norton wrote: >> On Sun, 10 Feb 2019 11:26:32 -0500, J Burns wrote > >>>> >>>> What I am trying to understand is why, if it has been left open after >>>> the app has quit, lsof doesn't find it. >>>> >>> Quicklook Manager can lock a file... at least it could in the past. >>> >>> qlmanage -r >>> >>> will reset it. >> >> Thanks. I'll give that a try the next time it happens. But in that >> case, wouldn't lsof find the file open by the Quicklook application? >> > > It will while it's running, but apparently it is, or was, possible for > Quicklook to leave a lock on the file afterward. > > Is it only .mkv files that are a problem? It's a container for lots of > formats. I wonder of running one of those formats with VLC might invoke > an Apple process that will keep the file flagged even after it's closed. > > I'm talking through my hat! Just had a chance to try qlmanage. Didn't work. I'm not sure if it's only mkv files. That's all I remember seeing recently. But it's not every one. I watched several over the last day or so and only one got stuck in the trash. No pattern that I can see. I'll look around for some avi's to try. -- Ed
[toc] | [prev] | [next] | [standalone]
| From | Percival John Hackworth <pjh@nanoworks.com> |
|---|---|
| Date | 2019-02-10 09:38 -0800 |
| Message-ID | <0001HW.2210991E04BF7FDF1580632CF@news.individual.net> |
| In reply to | #122175 |
On 10-Feb-2019, Ed Norton wrote (in article<0001HW.D88565F20036324FB02919BF@news.astraweb.com>): > On Sat, 9 Feb 2019 21:52:14 -0500, Percival John Hackworth wrote > (in article<0001HW.220FC95E048ECF6515301A2CF@news.individual.net>): > > > On 09-Feb-2019, Ed Norton wrote > > (in article<0001HW.D884D2DF0020C3ECB02919BF@news.astraweb.com>): > > > > > On Sat, 9 Feb 2019 17:31:32 -0500, ErikRS wrote > > > (in article <q3nkc5$3cr$1@solani.org>): > > > > > > > > > > > Jolly Roger wrote: > > > > > On 2019-02-09, Ed Norton<norton@nowhere.com> wrote: > > > > > > I mentioned in an earlier post that occasionally after playing a video > > > > > > with VLC, closing VLC, and moving the file to the trash, I could not > > > > > > empty the trash. Some incredulity was expressed. > > > > > > > > > > No it wasn't. As I recall, a few people commented telling you why that > > > > > might happen. Typically it's because VLC (or another app you were using > > > > > to access the file in question) left the file in an open state rather > > > > > than closing it. That's not the definition of "incredulity" where I come > > > > > from. : ) > > > > > > > > So I recall it too.:-) - The easiest way to solve the problem is to > > > > restart 'Finder' and then empty the trash... - Or you can use an app > > > > like 'MainMenu''s feature to 'Force Empty Trash'. > > > > > > > > It's not only VLC that sometimes thinks that the file isn't closed. - > > > > Even Amadeus Pro does this. Amadeus is likely to think that the icon > > > > still is in use and therefore won't empty the trash. > > > > > > > > Cheers, Erik Richard > > > > > > Thanks, JR and Erik. I'm not asking how to get rid of the file. I > > > know several ways to do that. I'm just trying to understand the > > > problem. In my case when I try to empty the trash, VLC has quit so VLC > > > can't think the file is still open. And lsof doesn't find the file, so > > > the system doesn't think it is open. > > > > > > I've only ever seen this with files I have opened in VLC. I don't use > > > Amadeus frequently enough to have noticed it there. > > > > > > I don't understand which icon you are referring to. The icon for VLC > > > is in it's package, right? And the Finder displays the icon for the > > > file based on the application that is designated to open it and/or the > > > type of file it is. In this case, it is the VLC icon. The displayed > > > icon is part of the Finder's database, not part of the file. > > > > > > I dragged the file out of the trash and changed the opening application > > > to QuickTime, put it back into the trash showing the QuickTime icon, > > > and it still doesn't empty. That suggests that it isn't the icon. > > > > > > I'm not anal-retentive about emptying the trash. That's easy enough to > > > do. But if it's a VLC bug I'd like to report it. And I'd like to > > > supply them with a little more information than "This happens > > > sometimes" :) > > > > Go back and read the posts again. Have someone explain the concept of "some > > app left a file open and won't close it until you quit the app". > > > > Given your responses to the advise given, just reboot your machine. That's > > probably the least annoying thing you can do and it will solve your problem. > > With a sledge hammer. > > I apologize if my posts have not been clear. *I don't care about > deleting the file and am not looking for advice how to do so.* > > What I am trying to understand is why, if it has been left open after > the app has quit, lsof doesn't find it. I'm not a mac programmer, but I can guess that when the application opens the file, the Finder and MacOS make a note of this. The application closes the file with the standard close() system service and MacOS let's go of the resources used to access the file. lsof looks through those kernel data structures when it reports on open files. The Finder probably has it's own data structures, separate from MacOS. Either through a bug or poorly understood programming or whatever, the application keeps the list of files it's opened in a cache like "Recent Items", but aren't really open as far as MacOS is concerned. The Finder's Empty Trash won't let you delete those files, possibly because of a bug or not bothering to check with MacOS that they're open or not. When the application quits and releases the cache, Finder let's you delete the files. Apple's mail does this reliably. If I attach a file to an email and send it, I can't delete the file in the Trash until I quit Mail. I haven't tested this theory on Preview. BBedit or Sublime don't have this problem. If you close a file, you can delete it. If you delete the files in the .Trash folder with "rm", they go away. Finder is the program that won't let you delete the files in Trash. Why two "list of files" databases? Here's my guess, although it's from a behavior I've seen on Solaris. I don't know if it's still a problem on Linux or MacOS. If you have a process (e.g. a running program) open a file and do something with that file, most likely it's a child process that's going to do the processing. If that child also closes the file and deletes it, then exits, the parent doesn't know that and the filesystem still thinks the file is open and won't release it's storage until the parent process exists. Just a theory based on another OS and it's problems with files. Take it as a grain of salt. If you have the time and skills to root around and figure out what process is holding on to the file and a way to make Finder and MacOS agree, submit a bug to Apple. They'll get right on it, I'm sure. -- DeeDee, don't press that button! DeeDee! NO! Dee...
[toc] | [prev] | [standalone]
Back to top | Article view | comp.sys.mac.system
csiph-web