You are here

Listing shortcuts (rather than exe's) in the menu

15 posts / 0 new
Last post
msorens
Offline
Last seen: 16 years 6 months ago
Joined: 2007-12-27 10:46
Listing shortcuts (rather than exe's) in the menu

Is it possible to list shortcuts (.lnk files) rather than executables (.exe files) in the PAM? Or is there support for this in some variation (such as the "PAM MOD") ?

Patrick Patience
Offline
Last seen: 4 years 6 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Yea

Go read the post at the top (or near the top) of the PortableApps.com Menu Forum.

Simeon
Simeon's picture
Offline
Last seen: 9 years 8 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Well..

Is it possible to list shortcuts (.lnk files) rather than executables (.exe files) in the PAM?
No because shortcuts use relative paths and that might change as you switch PCs.
Don't know about the second one though.

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

digitxp
digitxp's picture
Offline
Last seen: 12 years 9 months ago
Joined: 2007-11-03 18:33
Actually...

How can relative paths change when you switch PCs?

Insert original signature here with Greasemonkey Script.

Simeon
Simeon's picture
Offline
Last seen: 9 years 8 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
haha

Thanks. I should read through my stuff more carefully before I hit the button!
OK - another try:
relative paths don't change as you switch between PCs.
But absolute paths do. And because shortcuts use absolute paths...

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

m2
Offline
Last seen: 13 years 4 months ago
Joined: 2006-12-12 12:00
And because shortcuts use

And because shortcuts use absolute paths...
If they do, they do, but if they don't, they don't.
They contain both absolute and relative paths. If the absolute one is invalid, they use the relative one. So change the absolute to something that's always invalid like aa:\ and it will use only the relative one.

"Those people who think they know everything are a great annoyance to those of us who do." Asimov

rab040ma
Offline
Last seen: 1 week 3 days ago
Joined: 2007-08-27 13:35
Inconsistent and slow

In my testing, making a shortcut with an absolute path and relying on Windows to try making it relative works sometimes, but it's not consistent, and it's slow.

Do we need a way for non-geeks to make exe shortcuts that use relative paths?

MC

Kevin Porter
Kevin Porter's picture
Offline
Last seen: 10 years 4 months ago
Developer
Joined: 2007-01-10 19:25
Quite easy.

Using NSIS, that is. If anyone wants one, I can whip up a few in a matter of minutes.

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

rab040ma
Offline
Last seen: 1 week 3 days ago
Joined: 2007-08-27 13:35
You're a non-geek? :-P

You're a non-geek? Blum

MC

Kevin Porter
Kevin Porter's picture
Offline
Last seen: 10 years 4 months ago
Developer
Joined: 2007-01-10 19:25
No.

I was just proposing a solution.

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

HalosGhost
Offline
Last seen: 15 years 4 months ago
Joined: 2008-01-26 19:28
Prism Shortcuts

for those of you who don't know, Prism is a prototype extension to Fx. It allows you to split a web-app from Fx. Of course, when you do this, it creates a shortcut that accesses the web-app. I want to use these apps on my portable zip drive, but shortcuts don't work with PAM. Is there a fix?

Jimbo
Offline
Last seen: 4 years 5 months ago
Joined: 2007-12-17 05:43
Like it says above

No, and there probably never will be.

Shortcuts use absolute paths, which means that they have the explicit drive letter encoded within them. Since USB drive change letters as they move, this breaks the shortcuts.

The only 'fix' would be to quite literally recreate the shortcuts from scratch each time you plugged the drive in, and for the vast majority of cases, there are much simpler ways to get the same result.

What you would need to do is to create an app that could read all the settings out of a shortcut, and then create a new one with the same name and all of its settings based on the old ones. I know of an app that does the create, but I've not seen anything that can read a .lnk file and parse out its contents.

If you had such an app, that could update drive letters in shortcuts, that would be the first step towards menu inclusion.

Oops... I think I may have just answered the wrong question. Rereading your post, I'd guess that they're acutally url files, not shortcuts (they look pretty much the same, but they're quite different, and handled completely differently by the OS). I very much doubt that there'll be support for them in the menu any time soon, but it's possible, I guess.

wk
wk's picture
Offline
Last seen: 1 year 1 week ago
Joined: 2007-09-05 12:31
You could use convey portable within PAM...

to use any shortcuts via contextmenu "send to" and via taskbar quicklauncher http://www.noir3d.com/portableSuite/

"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

Mr Magical
Mr Magical's picture
Offline
Last seen: 14 years 7 months ago
Joined: 2008-02-15 19:18
What if

Imagine entering the relative path to something in a text file and changing the extension to something like 'paf.shc' and having it recognized by the menu...

That would be sweet.

Signature automatically removed for containing links

Jimbo
Offline
Last seen: 4 years 5 months ago
Joined: 2007-12-17 05:43
have a look at

Geek.Menu already supports adding your own 'shortcuts', and I think some of the other menu mods do, too.

Log in or register to post comments