My computer? Thread last updated on 2008-03-05 22:24:57

Posted by member 108633 on 2008-02-29 21:01:30

How do I create a link to My Computer?

Posted by member 1 on 2008-02-29 21:58:44 link

Posted by member 108633 on 2008-03-02 01:46:14 link

so... I don't want to create a menu just a link to my computer. That way when I plug in a new device i dont have to refresh litestep.

Posted by member 1 on 2008-03-02 08:12:39 link

Who said anything about a menu?

Posted by member 212670 on 2008-03-02 14:37:00 link

Open a command, put in $Drives$, press enter.

Posted by member 108633 on 2008-03-05 00:45:24 link

Ok. Here's the deal. I'm using a GNOME like theme, and it's been a while since I used Litestep last. Anyway, the top bar has the Applications, Places, and Desktop menus. In Places there are 2 submenus: Home Folder and Control Panel. In the home folder submenu there are links to all my drives that are connected to my computer, but there is no link to My Computer. I don't like this because if I were to plug in my usb key I would have to open C:\ (or another place) and go to my computer from there or refresh litestep so I the new drive shows up.
So if I wanted to create a link to my computer in the places menu above the home folder submenu, how would i do that? Sorry for not explaining it better to begin with.

Posted by member 212670 on 2008-03-05 04:00:53 link

You could add in:

*Popup "My Computer" "$drives$"

That will open your system's default file manager as if you double clicked My Computer.

Now, if you instead wanted an actual submenu, like in the standard right click menu, you would do:

*Popup "My Computer" !PopupMyComputer

The problem with that is, once it is cached (after first creation), you'll be back at square one with it not updating to show the newly attached drive.

One solution would be to call a !popuprescan before the !bang that opens the menu. It would look something like:

*Popup "Some Caption" !execute [!PopupRescan][!BangToMenu]

That will work, but it will cause a teeny delay before the menu opens. The above assumes xPopup is the popup module.

Lastly, there is probably a better solution if you read over the help file for the latest xPopup (2.x). This is something I don't feel like doing, because it's not very user friendly. :P

Posted by member 1 on 2008-03-05 07:54:28 link

Or lastly you could add a RightClick option to the Home button to open the $drives$ evar.

Posted by member 108633 on 2008-03-05 22:24:57 link

Thankd.