All your computers and your phone/iPhone, working as one desk. Screens, apps, files, clipboard, calls, texts, notifications, mouse and keyboard, shared between Mac, Windows, Linux , Android, Web and ios / ipados . Free and open source. No account, no cloud, and no shared network needed.
JavaScript androidapple-ecosystemconnectelectronfile-sharingintel-unison-alternativeiosios-windowskde-connect-alternativekvmlinuxmacbookmacosmouse-sharingphone-link-alternativeproductivityscreen-sharingsidecar-alternativesynergy-alternativewindows
// TwinDesk — Copyright (C) 2026 inukaasith. GPL-3.0, see LICENSE.
// Mount tab: the phone's storage as a drive in Finder (phonedrive.js). Off, TwinDesk doesn't look
// for the phone or touch its files at all; on, only Mount does, and only while it's mounted.
'use strict';
UI.tab({
id: 'mount',
for: ['android'], // its storage through ADB (shared/ui-kinds.js)
wifiOnly: true, // over Bluetooth it can't work and doesn't move the session onto Wi-Fi: says so, with Connect with Wi-Fi Direct
group: 'Share',
order: 55,
title: I18n.t('Mount'),
desc: I18n.t('The phone’s storage as a drive in Finder, through ADB: the cable (USB debugging) or wireless debugging.'),
color: 'linear-gradient(#ffd60a, #ff9f0a)',
badge: (s) => (s.mount && s.mount.mounted ? 'on' : ''),
moduleSwitch: { get: (s) => !!(s.mount && s.mount.on), set: (v) => UI.api.setMount({ on: v }) }, // General › Modules
build(body) {
const { api } = UI;
const onSw = UI.switch((v) => api.setMount({ on: v }), { label: I18n.t('Phone in Finder') });
const onRow = UI.row(I18n.t('Phone in Finder'), '', [onSw]);
const mountBtn = UI.button(I18n.t('Mount'), () => api.phoneMount(), 'small primary');
const showBtn = UI.button(I18n.t('Show'), () => api.phoneMount(), 'small');
const unmountBtn = UI.button(I18n.t('Unmount'), () => api.phoneUnmount(), 'small');
const driveRow = UI.row(I18n.t('Show the phone in Finder'), '', [mountBtn, showBtn, unmountBtn], { literalHint: true });
// Mount is ADB: with the phone's debugging off it can't, and says so (Phone Files needs none).
const adbText = UI.el('div', { class: 'hub-top-text' });
const adbNote = UI.el('div', { class: 'note warn hub-top', hidden: true }, [UI.el('div', { class: 'hub-top-body' }, [adbText]),
UI.el('div', { class: 'hub-top-actions' }, [UI.button(I18n.t('Wireless Debugging'), () => (UI.goSection ? UI.goSection('connection', 'adb') : UI.go('connection')), 'small'), UI.button(I18n.t('Phone Files'), () => UI.go('pfiles'), 'small primary')])]);
body.append(adbNote);
body.append(UI.card(I18n.t('Finder'), [onRow, driveRow]));
return (s) => {
const d = s.mount || {};
const ph = s.phone || {};
const adb = ph.adb || {};
const adbOff = !!ph.connected && !ph.connected.usb && !d.mounted && (adb.wifi === false || (ph.bridge && ph.bridge.state === 'waitingWifi'));
adbNote.hidden = !d.on || !adbOff;
adbText.textContent = adb.devOptions === false
? I18n.t('Mount works through ADB, and Developer options are off on the phone. Switch on Developer options and Wireless debugging (Connection), or plug the phone in with USB debugging on. Phone Files works without it.')
: I18n.t('Mount works through ADB, and wireless debugging is off on the phone. Switch it on (Connection), or plug the phone in with USB debugging on. Phone Files works without it.');
onSw.set(!!d.on);
driveRow.hidden = !d.on;
mountBtn.hidden = !!d.mounted;
mountBtn.textContent = d.busy === 'mounting' ? I18n.t('Mounting…') : I18n.t('Mount');
mountBtn.disabled = !!d.busy;
showBtn.hidden = unmountBtn.hidden = !d.mounted;
unmountBtn.disabled = !!d.busy;
const message = d.message && d.message.startsWith('Couldn’t mount the phone: ')
? I18n.t('Couldn’t mount the phone: {error}', { error: d.message.slice('Couldn’t mount the phone: '.length) }) : I18n.t(d.message || '');
driveRow.setHint(message || (d.mounted ? I18n.t(d.via === 'usb' ? 'In Finder under Locations (through the cable).' : 'In Finder under Locations (over wireless debugging).')
: I18n.t('Plug the phone in with USB debugging on, or connect it with wireless debugging, then Mount.')));
};
},
});