Jump to content
You must now use your email address to sign in [click for more info] ×

[WINDOWS] Spaceman - Workspace Manager for Affinty


gabriel_komorov

Recommended Posts

Due to lack of native solution I present you Spaceman :)

It allows you to backup and restore workspaces of Photo, Designer and Publisher. There's also sync option if you want to have same UI in Publisher personas and standalone applications.

Spaceman is command line tool with very straightforward operation, backups are created in folder from where it is started.

Feel free to suggest further improvements and give me a shot if you found bug!

Edit:

There was a problem with compiled .exe so now I'm sharing .bat file instead (and also for peace of mind of @CLC;) )

 

2019-07-20 213806.png

Spaceman.bat

Link to comment
Share on other sites

1 hour ago, hadiD said:

Looks interesting!

Would you mind going into how you created this? I'm wondering if there's a way to create some custom things for my own use

All config files are stored in /AppData/Roaming/Affinity what you do with this knowledge is up to you ;)

 

1 hour ago, CLC said:

@gabriel_komorov Nice.

However... You could just share the original .bat file instead ;)

Error.jpg.c3385a0376a4d752a7613dc46aa1b830.jpg

Damn, you mean you can't run it?

I planned to share .bat but whole thing was hacked in a rush, so it's not prettiest piece of code. Besides is better to give useres something that just works, no questions asked. Oh and this way it can have nice icon too :)

Link to comment
Share on other sites

13 hours ago, gabriel_komorov said:

All config files are stored in /AppData/Roaming/Affinity what you do with this knowledge is up to you ;)

 

Damn, you mean you can't run it?

I planned to share .bat but whole thing was hacked in a rush, so it's not prettiest piece of code. Besides is better to give useres something that just works, no questions asked. Oh and this way it can have nice icon too :)

Of course not, check the compiler's homepage, it clearly states you have to licence a PRO version to distribute your exe.

Just install an OS to a Virtual Machine (ie Oracle Virtual Box) and check for yourself...

To your plans: Users don't care if they run .exe or .bat - they're after its functionality. Also compiling a .bat into .exe means you're hiding something. Maybe something mailicous. It could easily be harvesting Affinity licence files and calling back home sending them to you. Or whatever.

I don't care, ran this in a airgapped VM, just to check out. Could run filemon, regmon and wireshark to spot what it's actually doing around but didn't do that yet. Maybe later :)

Link to comment
Share on other sites

  • 4 weeks later...

Many thanks, @gabriel_komorov, this is a pretty cool application! Now I might actually spend time customising the Affinity apps to my liking (so far I found it a waste of time since it would get rewritten any time I switch PC).

For those that are a bit confused (as I was) about what happens when you backup: The app takes the configuration files from desired Affinity software and saves them into a folder structure locate wherever the Spaceman.bat file is running from. I.e. If I (1) place the Spaceman.bat in D:\Affinity_backup and (2) take a backup of Affinity Photo named "testBackup", then (3) the resulting backup will be stored in D:\Affinity_backup\Workspaces\Photo\testBackup.

Link to comment
Share on other sites

  • 6 months later...
On 3/14/2020 at 6:40 PM, timhuynhis said:

Does the .bat file have to in C drive?

Depends on if Windows resolves the %APPDATA% system environment variable correctly system wide also from other locations than from drive C:\. - There may be some seldom circumstances where %APPDATA% may not be resolved to the appropriate user application data folder: see for example here.

However, you should also check and validate that the the various xcopy command related used paths in that BAT-file, aka things like ...

Quote

xcopy  %APPDATA%\Affinity\Photo\1.0\Workspaces\Photo\*.*  %APPDATA%\Affinity\Publisher\1.0\Workspaces\Photo /s/y

... etc do exist and are correctly setup.

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Link to comment
Share on other sites

  • 2 weeks later...

Thanks, @gabriel_komorov!

This is fan-freakin'-tastic. 

 

💝

OS: Windows 11 Pro (version 10.02.2200)  |   GPU: NVIDIA Quatro RTX 4000  |   CPU: AMD Ryzen 7 2700X Eight-Core Processor (3.70 GHz)  |  MOTHERBOARD: Asus ROG STRIX B450-F Gaming  |  RAM: Corsair DDR4-2132 (1066 MHz) -- 4x16GB  |  DISPLAY 1: ASUS VA32U 3840 x 2160 (60.000Hz refresh rate) | Display Port connection  |  DISPLAY 2: ASUS VA32Q 2560 x 1440 (60.000Hz refresh rate) | Display Port connection

 

Link to comment
Share on other sites

  • 3 weeks later...

Thanks for this. It's a really useful tool. I wish this was built into the Affinity suite of apps already (like many others). Having the ability to save different workspaces is so vital (and being able to back them up). It takes hours (if not days) to setup add-ons, assets, macros etc. and all the window presets etc. for each.

Is there a Mac project with the same or similar features?

Link to comment
Share on other sites

3 hours ago, Asfak Mahmud said:

How does it works? Could anyone attach screen video?

Hi,

You need to put the file Spaceman.bat in a new folder where it'll be able to create new folders for the backup files.

And you run it clicking on it or right clicking and choosing "open". It'll ask you which operation to do, for which application, and report the results.

Link to comment
Share on other sites

  • 1 month later...

@Asfak Mahmud it seem to copy the current workspace layout from photo or designer and save it, so you can then use the same file to restore it later.

 

:BACKUPPHOTO
~
xcopy %APPDATA%\Affinity\Photo\1.0\Workspaces\*.* "Workspaces\Photo\%photobackupname%" /s

:BACKUPDESIGNER
~
xcopy %APPDATA%\Affinity\Designer\1.0\Workspaces\*.* "Workspaces\Designer\%designerbackupname%" /s

:BACKUPPUBLISHER
~
xcopy %APPDATA%\Affinity\Publisher\1.0\Workspaces\*.* "Workspaces\Publisher\%publisherbackupname%" /s

As you can see it grabs the current info from the source you choose and saves it as the name you choose (some code removed for clarity of this reply - do not use this to replace code in the .bat file)

Cheers

Link to comment
Share on other sites

4 hours ago, Asfak Mahmud said:

@D_WW It wouldbe reall really great if you make a video explaining everything start to finish. 

Why? Download the spaceman.bat and follow my instructions. They are simple enough. The rest of the instructions show up when you launch the file. It asks you what application you want to save, then it asks for a file name. 

You can figure it out for yourself if you actually got the file and tried it, by the time you've waited for someone to do a video...

Link to comment
Share on other sites

  • 5 months later...

Great tool! Some suggestions:

  • Detect whether Publisher/Photo/Designer are installed (and if only one, skip the "back up which" question, and remove sync option)
  • Allow for a default back up name, useful for people who just intend to have a single configuration. (enter no value for the backup name)

A bug:

  • When doing a backup on the same name, it asks for me if I want to overwrite. I can't say (y)es!

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.