Portable

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
PureGuy
Enthusiast
Enthusiast
Posts: 102
Joined: Mon Aug 30, 2010 11:51 am

Portable

Post by PureGuy »

Currently I use PE mostly portable cause I switch places very often lately.

Instead of these 3 switches we have:

/NOEXT
/LOCAL
/PORTABLE

why not make it portable by default, in case PureBasic.prefs exists next to PureBasic.exe?

And one thing i found to be annoying on my home pc, where I often switch between LTS and last stable
is the file registration.

Unlike every esle software PE register it file types everytime one starts Purebasic.exe :shock:

It should be done once with setup PB and than be an option in IDE, but not done every time.
User avatar
Shield
Addict
Addict
Posts: 1021
Joined: Fri Jan 21, 2011 8:25 am
Location: 'stralia!
Contact:

Re: Portable

Post by Shield »

PureGuy wrote:why not make it portable by default, in case PureBasic.prefs exists next to PureBasic.exe?
Because you cannot just write to application directories, they might be protected and used by multiple different users.
PureGuy wrote:It should be done once with setup PB and than be an option in IDE, but not done every time.
I agree on that one.
Image
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: Portable

Post by c4s »

Yes, a very important feature request!

I hope you don't mind if I use this chance to refer to my related request: IDE - Relative paths for all preferences
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
PureGuy
Enthusiast
Enthusiast
Posts: 102
Joined: Mon Aug 30, 2010 11:51 am

Re: Portable

Post by PureGuy »

Well shield, let me re phase it.

"why not make it portable by default, in case PureBasic.prefs exists next to PureBasic.exe (and the PB folder is writable)?"

Good point c4s, that something I forgot to mention. :D
Last edited by PureGuy on Mon Feb 02, 2015 11:46 pm, edited 1 time in total.
PB Fanatic
User
User
Posts: 49
Joined: Wed Dec 17, 2014 11:54 am

Re: Portable

Post by PB Fanatic »

PureGuy wrote:why not make it portable by default
That's how PureBasic used to work. It got changed many versions ago. I just created my own exe instead which launches PureBasic.exe with the /PORTABLE switch, and I run that exe instead of PureBasic.exe to always open the app portably.
juror
Enthusiast
Enthusiast
Posts: 228
Joined: Mon Jul 09, 2007 4:47 pm
Location: Courthouse

Re: Portable

Post by juror »

Or from a shortcut

Target YourLocation\PureBasic.exe /portable
PB Fanatic
User
User
Posts: 49
Joined: Wed Dec 17, 2014 11:54 am

Re: Portable

Post by PB Fanatic »

Shortcuts are not portable. ;) I can take my PureBasic folder (on SD card) to any PC and run it portably. A shortcut is tied to the PC on which it's created.
juror
Enthusiast
Enthusiast
Posts: 228
Joined: Mon Jul 09, 2007 4:47 pm
Location: Courthouse

Re: Portable

Post by juror »

It was just a suggestion PB ;)

Didn't mean to imply it was better than yours. I'm not an expert.
PB Fanatic
User
User
Posts: 49
Joined: Wed Dec 17, 2014 11:54 am

Re: Portable

Post by PB Fanatic »

juror wrote:Didn't mean to imply it was better than yours.
Don't worry; I didn't take it that way. Relax. :) But the topic is portability, so I was just pointing out that a shortcut won't allow that.
User avatar
Vera
Addict
Addict
Posts: 858
Joined: Tue Aug 11, 2009 1:56 pm
Location: Essen (Germany)

Re: Portable

Post by Vera »

+1 for old friendly portability 8)

Yes, I'm too very unhappy with PB not being portable anymore without bigger issues.
Also fiddling around with the file registration is annoying to be made undone everytime it happens and if you're very unlucky it even corrupts your portable prefs by overwriting them. [better keep save-copies - just in case ;-) ]

As alternative for shortcuts you could also use batch-files.

@PB Fanatic
you might like to have a look at Horst's ShortExe which enables you to start any app on (from) portable drives.
And as you're switching places often you might find his launcher-apps (Qsel, PopSel) which too regard drive-changes, handy to use.

greets ~ Vera
User avatar
Lord
Addict
Addict
Posts: 900
Joined: Tue May 26, 2009 2:11 pm

Re: Portable

Post by Lord »

I use a shortcut next to PureBasic.exe in PureBasic folder
with the /PORTABLE switch.
I have some version of PB in seperate folders, each folder
has its own shortcut.
I run PB not on a system partition. All PB related folder
reside on a seperate drive. Temp exes are created in
source code folder. Each PB version has its own source
folder.
If a new PB version is out, I just copy *.prefs from the
last version in the new folder and create a new shortcut
in this folder. That's all.
Image
Post Reply