You are here

[Fixed] Documents, PortableApps folders and sub-folders invisible to PocketSearch and other apps

15 posts / 0 new
Last post
dodi
Offline
Last seen: 2 years 9 months ago
Joined: 2010-10-15 09:26
[Fixed] Documents, PortableApps folders and sub-folders invisible to PocketSearch and other apps

The PortableApps Platform gives the folders Documents and PortableApps special qualities that make them differ from any other folder you create yourself on a flash drive. These special qualities can cause problems for other portable programs, e.g. PocketSearch (see my post https://portableapps.com/node/29630), which is a handy program to index and search the content of your flash drive. The folders Documents and PortableApps are invisible for PocketSearch.

It is not only the icon that gives these 2 folders a different appearance. It goes beyond that. For a test I removed the folder icons by deleting the folder X:\PortableApps\PortableApps.com\App\Graphics\WindowsFolderIcons. After doing that the folders look the same as any other folder but they are still invisible to PocketSearch. The only way to make them visible to PocketSearch is to delete them and then create folders with the same names (and move your data and apps back there).

What is the reason for this strange behavior of the preset folders Documents and PortableApps (and also of Music, Pictures, Videos)? Is there a way to fix it without deleting and recreating them?

Aluísio A. S. G.
Offline
Last seen: 8 years 4 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
Marked as System folders

For the icon trick to work, these folders need to be marked with the System bit, what in turn makes them invisible for some programs.

Previously known as kAlug.

dodi
Offline
Last seen: 2 years 9 months ago
Joined: 2010-10-15 09:26
Can you explain in more

Can you explain in more detail please? Is it possible to get around deleting and recreating the folders? This would save me quite some time because I could avoid coping Gigabytes of data back and forth.

John T. Haller
John T. Haller's picture
Online
Last seen: 5 min 8 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Platform Update

We're going to be ditching the custom icons and the setting on those folders due to some incompatibilities like you mentioned in an update within the next 7 days.

Sometimes, the impossible can become possible, if you're awesome!

3D1T0R
3D1T0R's picture
Offline
Last seen: 3 years 5 months ago
Developer
Joined: 2006-12-29 23:48
Could it possibly be an option in the installer?

I'd like to keep the Icons myself, but since they're causing trouble for some people and you're considering them for removal, could it instead be turned into an option in the Platform's installer? (I have no preference regarding which is the default behavior).

I personally like the customised folder icons, I do that to my own folders, and I've been wondering for a while now whether we could add a similar option to the standard PA.c Installer to add the App's Icon to it's folder.

~3D1T0R

John T. Haller
John T. Haller's picture
Online
Last seen: 5 min 8 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Possibly

I could disable it by default and make it an advanced option, letting folks who want it turn it on. The issue is that it requires setting the system flag to true on the folders. Turning this off normally requires the command line for an end-user (which is non-trivial). It breaks the ability for many non-standard file open windows to find it (since they ignore system files) as well as things like the app referenced in this thread. It also apparently makes the folders invisible by default on some Linux OSes, which is an even bigger issue. Thus, I'm inclined to disable it entirely so folks don't encounter random problems later. If we do have it available as an option, we'd likely need a warning explaining this.

Sometimes, the impossible can become possible, if you're awesome!

Simeon
Simeon's picture
Offline
Last seen: 10 years 2 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Oh

I never had any problems seeing these folders on my Ubuntu box. And I like the custom folders so I would like an optional setting.

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 5 months ago
Joined: 2007-04-15 21:08
Incompetence

That's nasty. But it's entirely their fault. We're doing something which is perfectly acceptable and shouldn't cause any trouble, but they are misinterpreting it. John: my feeling on this is that unless there are quite a few more such things we should not remove it but rather just report it as a bug to them and try to get them to fix it. Our directories appearing with the special icons and labels is just like the standard user profile directories, and I think that they are good for usability.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

kirbylover4000
kirbylover4000's picture
Offline
Last seen: 12 years 6 months ago
Joined: 2009-09-30 18:29
Easier way

You can fix this without moving GBs of data by right clicking the documents, photos, videos, music and PortableApps folders, choosing properties and unchecking system. Delete desktop.ini inside the folders if this still doesn't work.

This is an airconditioned room - Do not open Windows!

John T. Haller
John T. Haller's picture
Online
Last seen: 5 min 8 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Wont Help

It's the system flag on the folder that causes the problems

Sometimes, the impossible can become possible, if you're awesome!

dodi
Offline
Last seen: 2 years 9 months ago
Joined: 2010-10-15 09:26
Read-only flag instead?

What if you use the read-only flag instead of the system flag to keep the icons for Documents, etc. to avoid the problems with "invisible" folders for some programs?

For a test I removed the system flag and instead added the read-only flag. PocketSearch sees folders with read-only flag.

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 5 months ago
Joined: 2007-04-15 21:08
..?

That wouldn't achieve the desired result and it would cause trouble. We don't want the directory read-only.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

John T. Haller
John T. Haller's picture
Online
Last seen: 5 min 8 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Why not?

Setting a directory as read-only via flags (not via Windows Explorer) only sets the flag on the actual directory. You can still create, edit, delete files and folders within that directory without issue. And it does seem to accomplish the goal of maintaining the special folder icons. Maybe I'll try it in the next beta and see if it works for folks.

Sometimes, the impossible can become possible, if you're awesome!

3D1T0R
3D1T0R's picture
Offline
Last seen: 3 years 5 months ago
Developer
Joined: 2006-12-29 23:48
Yeah,

Now that I've taken the time to look, Changing the Icon of a folder via the "Customize" tab of the "Properties" window sets the ReadOnly flag, not the System flag, and I've got tons of folders that I now see are set to be ReadOnly, but since their contents is not, it still works normally, and I've never even noticed.

I think it'd work fine.
(Though you'll have to remove the System flag as well as add the ReadOnly flag to achieve the desired result on upgrade. ☺)

~3D1T0R

John T. Haller
John T. Haller's picture
Online
Last seen: 5 min 8 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Fixed in 10.1

PocketSearch will now find all your folders in the new release.

Sometimes, the impossible can become possible, if you're awesome!

Log in or register to post comments