You are here

Adding New Folders to the Platform - A Q&D solution

31 posts / 0 new
Last post
solanus
solanus's picture
Offline
Last seen: 10 years 1 month ago
Joined: 2006-01-21 19:12
Adding New Folders to the Platform - A Q&D solution

One of the more requested enhancements to the PA platform is the addition of more folder shortcuts, other than the default Documents, Music, Pictures, Video, and Explore.
While you can't add them to the same right-hand side of the platform yet, it is easy to make shortcuts to folders in with the app shortcuts.

This example makes shortcuts to two custom subfolders of Documents: Web Pages and Work.

First create your subfolders:

X:\Documents\WebPages
X:\Documents\Work

Then create the following folder structure:

X:\PortableApps\Folders\App\Appinfo

Then, make or copy icons for each folder, and place them in AppInfo with the names appicon1.ico and appicon2.ico

Finally, make a text file containing the following, and save in AppInfo as appinfo.ini:

[Format]
Type=PortableAppsFormat
Version=0.91

[Details]
Name=Folder

[Control]
Icons=2
Start=..\..\Documents\
Start1=..\..\Documents\WebPages\
Name1=.Web Pages
Start2=..\..\Documents\Work\
Name2=.Work

So you should have the following

X:
|_Documents
|    |_WebPages
|    |_Work
|
|_PortableApps
     |_Folders
         |_App
             |_AppInfo
                 |_appicon1.ico
                 |_appicon2.ico
                 |_appinfo.ini

Now, Refresh App Icons, and you should see two new icons in your app list, that will open those folders.
I started the names with a "." so that they would appear at the top, but you can also make them favorites, and rename them as you would any other.

OliverK
OliverK's picture
Offline
Last seen: 3 years 5 months ago
Developer
Joined: 2007-03-27 15:21
Nice trick!

Nice trick!

Too many lonely hearts in the real world
Too many bridges you can burn
Too many tables you can't turn
Don't wanna live my life in the real world

wk
wk's picture
Offline
Last seen: 1 year 5 months ago
Joined: 2007-09-05 12:31
works also with other non exe files

like pdf etc

"Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis .." Friday Next -
"May The Schwartz be with You!" Yogurt the Yoda

solanus
solanus's picture
Offline
Last seen: 10 years 1 month ago
Joined: 2006-01-21 19:12
Yep, as long as they have an

Yep, as long as they have an association. I'd like to see what happens when you've got CAFE or Portable File Associator running!

I made this half-pony, half-monkey monster to please you.

TheShadowOne
Offline
Last seen: 10 years 8 months ago
Joined: 2010-01-05 00:36
I think i broke something

Its not working for me.

i did this in dos commands,

E:>md documents
E:>md documents\work
E:>md documents\webpages
E:>cd portableapps
E:\PortableApps>md Folders
E:\PortableApps>md Folders\App
E:\PortableApps>mf Folders\App\Appinfo

Copied two icons into folder E:\PortableApps\Folders\App\AppInfo
Created INI file in E:\PortableApps\Folders\App\AppInfo

01/03/2009 09:43 AM 22,486 appicon1.ico
01/03/2009 09:43 AM 22,486 appicon2.ico
06/01/2010 02:31 PM 214 appinfo.ini
3 File(s) 45,186 bytes

appinfo ini contains
[Format]
Type=PortableAppsFormat
Version=0.91

[Details]
Name=Folder

[Control]
Icons=2
Start=..\..\Documents\
Start1=..\..\Documents\WebPages\
Name1=.Web Pages
Start2=..\..\Documents\Work\
Name2=.WorK

Closed Portableapps.com platform and re-opened tested and noting appears

solanus
solanus's picture
Offline
Last seen: 10 years 1 month ago
Joined: 2006-01-21 19:12
What version of Portable Apps.com?

I've tested this in 1.5.2 (the current release) and 2.0 beta 3, and it works.
Assuming that you have the Portable Apps Menu installed into the root of your drive, and that you aren't using a fork like Geek Menu, it should work.
Check the permissions of the folders, in case something funky is going on.

Don't know what else it could be.
Wish I could be of more help!

I made this half-pony, half-monkey monster to please you.

Benedikt93
Offline
Last seen: 10 years 1 day ago
Joined: 2009-12-17 14:46
PA.c Format

Maybe the launcher requires in its newer versions also newer versions of the apps.
So try changing the version under[Format] into 1.0

EDIT: Of course this can't be the problem as it works with 1.5.2 and 2.0b3

Does anybody know if the names under "Start" are case sensitive?

"Der Klügere gibt nach, deshalb regieren Dumme die Welt."

varxtis
Offline
Last seen: 8 years 8 months ago
Joined: 2010-02-01 12:36
Ya, I think Im also doing something wrong

Im trying to add specific File shortcuts to the list. The Icons and title come up perfectly, but there is no action/response when I click either.
the ini file looks like this

[Format]
Type=PortableAppsFormat
Version=2.0beta3

[Details]
Name=Folder

[Control]
Icons=2
Start=F:\Documents
Start1=F:\Documents\testmovie\Fullmetal_Alchemist_Brotherhood_-_42.mkv
Name1= Full Metal Alchemist: Brotherhood - 42
Start2=F:\Documents\Music\FMA_-_Period.mp3
Name2= FMA_-_Period

Ive tried this with and without underscores for the file spaces. Ive also tried just directories/folders instead of specific files, and even gone down to the basic, exactly as the example shows, and still nothing happens.
Please help.
Also, a question about all this. Is there anyway to make the files within the drive associated to a portableapp installed on the drive?
So for instance, set it up so that I have an mp3 listed on the platform, and (regardless of what computer the drive is plugged into) the mp3 opens into xmplayer.

[INI file put in <pre> block - mod Chris]
Edit - Thanks Chris, sry

auscompgeek
Offline
Last seen: 12 years 8 months ago
Joined: 2009-10-30 02:21
I see the problem

Your [Format] section should look like this:

[Format]
Type=PortableApps.comFormat
Version=1.0

Ignore silly users that PM you on IRC. What? You're one of them?

varxtis
Offline
Last seen: 8 years 8 months ago
Joined: 2010-02-01 12:36
still nothing

kk, I changed it to your suggestion, but It still isn't responding Sad
Im sure you recognized this and thus suggested the change, but I am running 2.0 Beta 3. Does that make a difference?
Thank you for your help, response, and time ^_^ its greatly appreciated.

Bruce Pascoe
Offline
Last seen: 12 years 10 months ago
Joined: 2006-01-15 16:14
...

The Version= setting isn't the version of your Platform, it's the PortableApps.com Format specification version, of which the current revision is 1.0.

varxtis
Offline
Last seen: 8 years 8 months ago
Joined: 2010-02-01 12:36
oh

Ah, oki doki. Well does anyone see anything else that i might be doing wrong in the ini code?

OliverK
OliverK's picture
Offline
Last seen: 3 years 5 months ago
Developer
Joined: 2007-03-27 15:21
don't use a full path. use

don't use a full path. use .. for every folder you need to go up. In this situation, you need ..\..\Documents\whaveter.etc

Try that.

Too many lonely hearts in the real world
Too many bridges you can burn
Too many tables you can't turn
Don't wanna live my life in the real world

varxtis
Offline
Last seen: 8 years 8 months ago
Joined: 2010-02-01 12:36
Still not working T_T

I tried it, but It still doesnt seem to be working.
This is how my ini file looks now.

[Format]
Type=PortableApps.comFormat
Version=1.0

[Details]
Name=Folder

[Control]
Icons=2
Start=F:\Documents
Start1=..\..\testmovie\Fullmetal Alchemist Brotherhood - 42.mkv
Name1= Full Metal Alchemist: Brotherhood - 42
Start2=..\..\Music\FMA - Period.mp3
Name2= FMA - Period
solanus
solanus's picture
Offline
Last seen: 10 years 1 month ago
Joined: 2006-01-21 19:12
File Associations may be the

File Associations may be the problem.
If the computer does not have a file association for the mkv file, you won't get an error, it just won't do anything.
Substitute a text file and see if that opens.

There are 2 different projects that will allow you to have portable file associations:
eXpresso: https://portableapps.com/node/22055
Portable File Associator: https://portableapps.com/node/15583

Personally, I wouldn't put individual files in the PA.c platform list, mostly because I've got too many things there already! I'd put my frequent flier files in a folder, and use Portable File Associator.

But, to each his/her own.

I made this half-pony, half-monkey monster to please you.

varxtis
Offline
Last seen: 8 years 8 months ago
Joined: 2010-02-01 12:36
It works

I feel very very stupid. First off, Thank you for all of your responses and your time, thank you for your patience.
The problem was in the start line.
My original ini start line looks like this

Start=F:\Documents\

and now I changed it to

Start=..\..\Documents\

And it works perfectly.
I still appreciate the suggestion of having eXpresso installed.
Ive installed it and VLCPortable, that way regardless of what
host computer the drive is plugged into, media files will play
on VLCPortable. Thank you again.
(To Mod: Sry wanted each ini start line in its own box, but all
it did was create a box within a box within a box T_T)
[Fixed your pre tag - mod Chris]

solanus
solanus's picture
Offline
Last seen: 10 years 1 month ago
Joined: 2006-01-21 19:12
It's all good!

You'll find that most people here are happy to help - and we all miss something obvious from time to time.

Peace.

I made this half-pony, half-monkey monster to please you.

varxtis
Offline
Last seen: 8 years 8 months ago
Joined: 2010-02-01 12:36
To Solanus:

Sry to get a bit off topic from the original thread topic, but I had a couple of questions and you seem very knowledgeable. can you email me at varxtis@hotmail.com?

computerfreaker
computerfreaker's picture
Offline
Last seen: 13 years 2 months ago
Developer
Joined: 2009-08-11 11:24
Better obfuscate that e-mail

Better obfuscate that e-mail address a bit, varxtis, or you'll have spambots hitting you pretty quickly. (You can still edit your post; that's why I haven't replied to you)
Something more like varxtis [at] [hotmail] would probably be safer.

Cheers!

"The question I would like to know, is the Ultimate Question of Life, the Universe and Everything. All we know about it is that the Answer is Forty-two, which is a little aggravating."

solanus
solanus's picture
Offline
Last seen: 10 years 1 month ago
Joined: 2006-01-21 19:12
He'll need a mod to fix it

Once someone replies to your comment, you lose edit rights!

I made this half-pony, half-monkey monster to please you.

Bruce Pascoe
Offline
Last seen: 12 years 10 months ago
Joined: 2006-01-15 16:14
...

Which is why computerfreaker didn't directly reply to it if you didn't notice.

solanus
solanus's picture
Offline
Last seen: 10 years 1 month ago
Joined: 2006-01-21 19:12
*sigh* no I didn't notice.

*sigh* no I didn't notice.

I made this half-pony, half-monkey monster to please you.

jimmy1up
jimmy1up's picture
Offline
Last seen: 14 years 2 months ago
Joined: 2010-02-06 21:11
Somewhat of a twist...

I'm trying to do this on 2.0 beta 4
My Directories are:

F:\Documents\Roms
F:\Documents\Roms\Rom Hacks
F:\Documents\Roms\Rom Hack Tools

My .ini:

[Format]
Type=PortableAppsFormat
Version=1.0

[Details]
Name=Folder

[Control]
Icons=3
Start=..\..\Documents\
Start1=..\..\Documents\ROMs\
Name1=Rom Files
Start2=..\..\Documents\ROMs\Rom Hacks\
Name2=Rom Hacks
Start3=..\..\Documents\ROMs\Rom Hack Tools\
Name3=Rom Hack Tools 

I have all three .ico files in there and did what you said, but nothing special appears. HELP!

"As soon as a man is born, he begins to die"

"Ask me no questions, I'll tell you no lies"

"Failure is not falling down, you fail when you don't get back up"

solanus
solanus's picture
Offline
Last seen: 10 years 1 month ago
Joined: 2006-01-21 19:12
Your ini worked for me in 2.0b4

Make sure that the folder structure is correct.

F:
|_Documents
|    |_ROMs
|        |_Rom Hacks
|        |_Rom Hack Tools
|
|_PortableApps
     |_Folders
         |_App
             |_AppInfo
                 |_appicon1.ico
                 |_appicon2.ico
                 |_appicon3.ico
                 |_appinfo.ini

Also, did you refresh the menu? (Options>Refresh App Icons or restart the menu).
Even if you didn't have any icons, as long as your appinfo.ini is exactly as you describe it and the folder structure is like it is above, you should see the names in the menu! Remember, it sorts alphabetically, so you will need to scroll to the "R"s.

I made this half-pony, half-monkey monster to please you.

jimmy1up
jimmy1up's picture
Offline
Last seen: 14 years 2 months ago
Joined: 2010-02-06 21:11
Something Interesting

I did all that (and YES, I have the .ico files), but it still didn't work. But I found out how to fix that.

You see, I made a ".txt" document and just put ".ini" in the file name. So I thought that could be the problem and searched for .ini files, copy and pasted them, changed the code in them to mine, and it worked. Biggrin

Thanks for the good tut.

"As soon as a man is born, he begins to die"

"Ask me no questions, I'll tell you no lies"

"Failure is not falling down, you fail when you don't get back up"

OliverK
OliverK's picture
Offline
Last seen: 3 years 5 months ago
Developer
Joined: 2007-03-27 15:21
you might have ended up with

you might have ended up with something like .ini.txt. Big issue on another forum Smile

I'm glad you got it sorted.

Next time you might try something like notepad++ or geany and making sure it saves only as a .ini file Smile

Have fun Smile

Too many lonely hearts in the real world
Too many bridges you can burn
Too many tables you can't turn
Don't wanna live my life in the real world

imroue
Offline
Last seen: 11 years 10 months ago
Joined: 2008-04-09 10:45
Documents Folder

Is there a way to get rid of the default folders or rename them to what we want.. i know you can't add more to the right hand side, but can you rename them?

Simeon
Simeon's picture
Offline
Last seen: 10 years 1 month ago
DeveloperTranslator
Joined: 2006-09-25 15:15
not yet

I think that that is planned for a future release.

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

jreynolds22
Offline
Last seen: 12 years 9 months ago
Joined: 2012-02-27 19:39
Logo

I've set everything up and the folders show up but not my icon.

mistercrowley
mistercrowley's picture
Offline
Last seen: 5 years 10 months ago
Joined: 2012-08-04 04:49
Same Issue with the icon

I don't know what I am doing since I am not any kind of programmer.

I did get the item to show in my list and such but the icon does not show

Chris Crowley

sarginnv
Offline
Last seen: 10 years 5 months ago
Joined: 2014-06-27 04:09
Oh

Ah, oki doki. Well does anyone see anything else that i might be doing wrong in the ini code?

Log in or register to post comments