Portman2 is in beta. Features are still being added, nothing here should be taken as final, and things can change or be removed without notice.

Help

Libraries and replicas

Keep Portman2 syncing in the background from the system tray

Portman2's tray icon keeps your library syncing with your other computers and serving phones on the LAN while the Portman2 window is closed, signed in as you.

The tray runs the same background work as the host service — exchanging albums, tags, stars and edits with the household's other computers, copying thumbnails from them, and serving the LAN pages — but as you, in your own session. So a library on a NAS opens the way it does for you in File Explorer, with no share password to hand over.

Starting it

The installer asks how Portman2 should run in the background, on its Background host page:

  • None — Portman2 works only while its window is open.
  • Tray at login — the tray starts every time you sign in to Windows, and the installer starts it straight away (a silent install leaves that to your next sign-in). Windows asks for administrator rights once, to let phones and other computers on your network reach the tray through Windows Firewall; see below.
  • Service (needs administrator) — the host service, which runs even when nobody is signed in. Setting it up also starts the tray at login, as the service's icon. Windows asks for administrator rights once, for setting up the service and nothing else; the rest of Portman2 still installs just for you.

Let phones reach the tray through the firewall

Choosing Tray at login also adds a Windows Firewall rule, Portman2 LAN server (tray), that lets phones, tablets and other computers on your home network open the LAN pages the tray serves. It is for Portman2.Tray.exe alone, on private and work networks only — never on a network Windows calls public — and whatever port the LAN server uses, so changing the port needs nothing more. Making it asks for administrator rights once; an update that keeps the tray asks for nothing, because the rule is already there. If you say no, the rest of Portman2 installs as usual, and Settings > LAN server offers Allow the tray through the firewall… while the tray is running the server with no rule letting anyone in. A rule you made yourself for the port counts too. From the pipeline folder, Portman2.Pipeline.Cli.exe host tray-firewall on makes the rule, host tray-firewall off removes it, and host tray-firewall status says what lets the tray in.

Choosing None removes the rule, as does uninstalling Portman2, each with one administrator prompt — and only when the rule is there. A rule of your own, under any other name, is never touched.

To change your answer, run the installer again: the page opens on what is set up now for this copy of Portman2, so pressing Next through an update changes nothing. A host service set up for another copy — another Windows user's, say — is left alone unless you choose Service, which moves it to this one. Moving away from Service asks for administrator rights again, to remove it.

An installer run without its pages — /SILENT or /VERYSILENT — takes the answer as /HOST=none, /HOST=tray or /HOST=service, and without one keeps whatever is set up. Updating from inside Portman2 keeps it too.

You can also start the tray yourself: it is Portman2.Tray.exe, in the pipeline folder where Portman2 is installed. Its icon appears in the notification area by the clock. Only one runs for each person on a computer: starting it again does nothing. From that folder, Portman2.Pipeline.Cli.exe host autostart on makes it start when you sign in, host autostart off stops that, and host autostart status says whether it is set; none of the three asks for an administrator.

Installing a new version of Portman2 closes the tray for you and starts it again when the install finishes, whether you update from inside Portman2 or run a downloaded installer yourself. The tray icon disappears for the length of the install and comes back on its own.

Uninstalling Portman2 closes the tray, stops it starting when you sign in, and removes the tray's firewall rule. If the host service was set up to run this copy of Portman2, uninstalling removes it and its firewall rule too, which asks for administrator rights; if you say no, the rest of Portman2 is still removed — though a service that is still running keeps a few of its files in use, and they stay behind — and a message gives the commands that remove the service by hand.

The icon and its menu

Double-click the icon to open Portman2. Right-click it for:

  • Open Portman2 — opens the app, or brings it forward if it is already open.
  • Pause sync — stops exchanging changes and copying thumbnails until you untick it. The LAN pages are still served. The tray remembers it: a paused tray is still paused after you sign out and back in.
  • Keep running — on, the tray goes on working after you close Portman2; off, it closes with Portman2. See below.
  • Start service — when the host service is installed but stopped, starts it and hands the work over to it. See below.
  • Status… — what the tray is doing, where the LAN pages are served from, and when this computer last synced.
  • Hide this icon — takes the icon away while the tray goes on working. See below.
  • Quit — stops the background work and removes the icon.

The icon carries a small mark: blue while syncing, grey while paused, a grey ring while another Portman2 host is doing the work, and red when something needs looking at — Status… says what.

Hide the tray icon

If you would rather not see the icon by the clock, choose Hide this icon from its menu. The tray goes on working exactly as before — syncing, serving the LAN pages, closing with Portman2 if Keep running is off — with nothing on screen.

To bring the icon back, open Portman2 and turn on Show the Portman2 tray icon in Settings > LAN server. The icon comes back within a second. The same switch hides it from there, too.

Keep running when Portman2 closes

With Keep running off — the way it starts — the tray closes when you close the last Portman2 window, so nothing of Portman2 is left running. Tick it, and the tray goes on syncing and serving the LAN pages with no window open; double-click the icon to bring Portman2 back.

The same switch is in Portman2 under Settings > LAN server, as Keep running when Portman2 closes. They are one setting: change it in either place and the other shows the change within a second.

The tray only closes when Portman2 itself closes. A tray started when you sign in, before you have opened Portman2, stays until you have opened Portman2 and closed it again, and unticking Keep running while Portman2 is closed takes effect the next time you close it.

With the host service installed

If the host service is installed and running on this computer, the tray does not run a second copy of the background work: two would be walking the same shared folder at once. Instead it becomes the service's window on your desktop. It syncs nothing, serves nothing and opens no shared folder itself; its icon shows a grey ring, and its menu is:

  • Open Portman2 — or double-click the icon.
  • Restart service — stops the host service and starts it again, for when it seems stuck.
  • Status… — that the service is running, where it serves the LAN pages, when it last synced and whether that went cleanly, and whether it can open the libraries on your NAS. If it cannot, Settings > LAN server in Portman2 says why and lets you give the service the share's password.
  • Hide this icon and Quit tray — quitting takes the icon away and leaves the service running.

The icon turns red when the service's last sync had problems or it cannot open a library on a shared folder.

Restart service asks for no administrator rights when the service was installed or updated by this version of Portman2 from your Windows account, because that gives your account the right to stop and start it. Otherwise the menu item says (asks for administrator rights), and Windows asks once; after that, it does not ask again. If you say no, nothing changes, and Status… says so.

The two hand over to each other by themselves. When the service starts while the tray is doing the work — at sign-in, the tray usually starts first and the service a minute or two later — the tray stops its own within a few seconds and the service carries on from there. If the service stops, the tray takes over within a few seconds.

If the service is installed but not running, the tray does the work and Status… says the service is stopped, and whether it stopped with an error. Choose Start service from the tray's menu — or start it from Portman2's LAN server settings — and the tray hands the work back to it.

The same goes for a host already running in a terminal: the tray waits for it to stop, then takes over.

Portman2 itself, with the host service running

Portman2 leaves the background work to the host service too. While the service is running and can open your library, Portman2 exchanges nothing with your other computers, copies no thumbnails from them and announces nothing in the shared folder itself: the service is already doing all of that, and two programs walking one shared folder at once is what Portman2 avoids. Settings > Replicas says the background service is syncing, when its last pass finished and whether it went cleanly, and photos, thumbnails and edits the service brings in appear in Portman2 within about half a minute of its pass. If that pass could not sync a library, a notice says so. Until the service has opened a library on your NAS — or if it cannot — Portman2 goes on syncing that library itself.

Everything you do yourself stays in Portman2, running as you: moving to trash, deleting, editing, renaming, importing, albums and tags. None of it is ever handed to the service, which runs as the computer's system account rather than as you, so it never acts on your photos with rights you do not have.

Portman2 opens faster with the tray running

While the tray is running, Portman2 opens faster: instead of starting its own background helper and waiting for it, it borrows one the tray has already started and has ready, so your photos appear about a second sooner. Nothing else changes. Each Portman2 window keeps its own library, filters and place, and closing the window ends only its own helper.

If the tray running is from a different version of Portman2, Portman2 asks it to restart as its own version and then uses it; the tray icon may disappear for a moment while it does. A tray that another Portman2 window is still using is left alone. When the tray cannot be used, Portman2 starts its own helper as it always has, so it opens no faster, and in the worst case a few seconds slower while it waits for a restart that does not come.

The quick jobs you wait on start sooner too. The preview of a rename or move, the size and count of an export before it starts, enhancing a photo, opening a video in the editor and the checks Portman2 makes on a library folder each used to start a helper of their own, which took about a third of a second before it did anything; with the tray running they are handed one the tray keeps ready, and start at once. Longer work — scans, imports, video conversions, downloads, backups, and the rename, move or export itself — still runs in a helper of Portman2's own, where a third of a second makes no difference, so updating or quitting the tray never cuts one short. Stopping a job from Portman2, or closing Portman2, stops it in the tray as well.

Syncing is unchanged: only one copy of the background work walks a shared folder at a time, whether Portman2 borrowed the tray's helper or not.

The tray only lends its helper to you: Portman2 and the tray must be running as the same Windows user, and nobody else signed in to the computer can use it.