mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-23 10:31:24 -08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
20d9740196 | ||
|
|
400b48c419 | ||
|
|
76f220d4f4 | ||
|
|
9c624cc23d | ||
|
|
d4a2a61e32 | ||
|
|
ba7b0d6deb | ||
|
|
7ee60b8ce0 | ||
|
|
7c279e355d | ||
|
|
63bdcd9201 | ||
|
|
516b8ee11b | ||
|
|
03bae59ec8 | ||
|
|
a3e70772d1 | ||
|
|
5bb5a30336 | ||
|
|
4e3abbb214 | ||
|
|
ade2298a69 | ||
|
|
c834661060 | ||
|
|
1cc911d994 | ||
|
|
c3d16403d5 | ||
|
|
82f6978d3d | ||
|
|
c255b560eb | ||
|
|
a2b0ae1ffe | ||
|
|
4e70cbf04b | ||
|
|
aa07e4f7be |
No files matched your search
@@ -29,7 +29,6 @@ import {
|
||||
} from './paths';
|
||||
import { initStores } from './store';
|
||||
import { closeLogger, logger } from './logger';
|
||||
|
||||
import { spawn } from 'node:child_process';
|
||||
import { discordPresence } from './presence';
|
||||
import { options } from './cli';
|
||||
@@ -47,6 +46,13 @@ if (process.platform === 'linux') {
|
||||
app.commandLine.appendSwitch('force-color-profile', 'srgb');
|
||||
}
|
||||
|
||||
console.log(options);
|
||||
// SteamVR will not see the application if this is not enabled
|
||||
if (options.steam) {
|
||||
app.commandLine.appendSwitch('enable-features', 'Vulkan,WebXR,WebXROpenXR');
|
||||
app.commandLine.appendSwitch('enable-xr-sandbox');
|
||||
}
|
||||
|
||||
app.setPath('userData', getGuiDataFolder());
|
||||
app.setPath('sessionData', join(getGuiDataFolder(), 'electron'));
|
||||
|
||||
@@ -501,6 +507,12 @@ app.whenReady().then(async () => {
|
||||
|
||||
logger.info('SlimeVR started!');
|
||||
|
||||
process.on('exit', async (code) => {
|
||||
console.log(code);
|
||||
server?.close();
|
||||
await server?.waitForExit();
|
||||
});
|
||||
|
||||
app.on('window-all-closed', () => {
|
||||
app.quit();
|
||||
});
|
||||
|
||||
@@ -34,7 +34,8 @@ export function NavButton({
|
||||
className={classnames(
|
||||
'flex flex-col justify-center xs:gap-4 mobile:gap-2',
|
||||
'mobile:w-[65px] mobile:h-[65px]',
|
||||
'xs:py-3 mobile:py-4 rounded-md mobile:rounded-b-none group',
|
||||
'xs:py-3 mobile:py-4 rounded-md mobile:rounded-b-none group select-text',
|
||||
'vr-button',
|
||||
{
|
||||
'bg-accent-background-50 fill-accent-background-20': doesMatch,
|
||||
'hover:bg-background-70': !doesMatch,
|
||||
|
||||
@@ -98,7 +98,8 @@ export function Button({
|
||||
'rounded-full p-2 text-center min-h-[35px] min-w-[35px]': rounded,
|
||||
'rounded-md px-5 py-2.5': !rounded,
|
||||
},
|
||||
props.className
|
||||
props.className,
|
||||
'vr-button'
|
||||
);
|
||||
}, [variant, disabled, rounded, props.className]);
|
||||
|
||||
|
||||
@@ -27,12 +27,16 @@ export function Radio<T extends FieldValues = FieldValues>({
|
||||
name={name}
|
||||
render={({ field: { onChange, ref, name, value: checked } }) => (
|
||||
<label
|
||||
className={classNames('w-full p-3 rounded-md flex gap-3 border-2', {
|
||||
'border-accent-background-30': value == checked,
|
||||
'border-transparent': value != checked,
|
||||
'bg-background-60 cursor-pointer hover:bg-background-50': !disabled,
|
||||
'bg-background-80 cursor-not-allowed': disabled,
|
||||
})}
|
||||
className={classNames(
|
||||
'w-full p-3 rounded-md flex gap-3 border-2 vr-button',
|
||||
{
|
||||
'border-accent-background-30': value == checked,
|
||||
'border-transparent': value != checked,
|
||||
'bg-background-60 cursor-pointer hover:bg-background-50':
|
||||
!disabled,
|
||||
'bg-background-80 cursor-not-allowed': disabled,
|
||||
}
|
||||
)}
|
||||
>
|
||||
<input
|
||||
type="radio"
|
||||
|
||||
@@ -79,7 +79,7 @@ export function ResetButton({
|
||||
variant="primary"
|
||||
disabled={disabled}
|
||||
>
|
||||
<div className="flex flex-col">
|
||||
<div className="flex flex-col vr-button">
|
||||
<div className="opacity-0 h-0">
|
||||
{children || <Localized id={name} />}
|
||||
</div>
|
||||
|
||||
@@ -160,7 +160,7 @@ export function BodyAssignment({
|
||||
highlightedRoles={highlightedRoles}
|
||||
onSelectRole={onRoleSelected}
|
||||
leftControls={
|
||||
<div className="flex flex-col justify-between h-full text-right">
|
||||
<div className="flex flex-col justify-between h-full text-right vr-button">
|
||||
<div className="flex flex-col gap-2">
|
||||
{hasBodyPart(BodyPart.HEAD) && (
|
||||
<TrackerPartCard
|
||||
|
||||
@@ -173,7 +173,7 @@ export function TrackerCard({
|
||||
<div
|
||||
onClick={onClick}
|
||||
className={classNames(
|
||||
'rounded-lg overflow-hidden transition-[box-shadow] duration-200 ease-linear',
|
||||
'rounded-lg overflow-hidden transition-[box-shadow] duration-200 ease-linear vr-button',
|
||||
interactable && 'hover:bg-background-50 cursor-pointer',
|
||||
outlined && 'outline outline-2 outline-accent-background-40',
|
||||
bg
|
||||
|
||||
@@ -433,3 +433,18 @@ a,
|
||||
-webkit-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
a,
|
||||
.nav-link {
|
||||
-webkit-user-drag: none;
|
||||
-webkit-user-select: none;
|
||||
user-select: none;
|
||||
touch-action: none;
|
||||
}
|
||||
|
||||
.vr-button {
|
||||
-webkit-user-drag: none;
|
||||
-webkit-user-select: none;
|
||||
user-select: none;
|
||||
touch-action: none;
|
||||
}
|
||||
@@ -5,18 +5,30 @@ import io.eiren.util.logging.LogManager
|
||||
|
||||
class Linux {
|
||||
val path: String = System.getProperty("user.dir")
|
||||
val isFrame = System.getenv("SLIME_SERVER_IS_FRAME")?.toInt()
|
||||
|
||||
fun updateLinux() {
|
||||
updateLinuxSteamVRDriver()
|
||||
}
|
||||
|
||||
fun updateLinuxSteamVRDriver() {
|
||||
val steamVRLocation = SteamUtils.findAppLibraryLocation(250820)?.resolve("steamapps/common/SteamVR") ?: run {
|
||||
LogManager.warning("SteamVR driver installation failed: couldn't find SteamVR")
|
||||
return
|
||||
}
|
||||
|
||||
val pathRegPath = "$steamVRLocation/bin/vrpathreg.sh"
|
||||
val pathRegPath =
|
||||
if (isFrame == 1) {
|
||||
"/opt/steamvr/bin/linuxarm64/vrpathreg"
|
||||
} else {
|
||||
val steamVRLocation = SteamUtils.findAppLibraryLocation(250820)?.resolve("steamapps/common/SteamVR")
|
||||
if (steamVRLocation != null) {
|
||||
LogManager.warning("SteamVR driver installation failed: couldn't find SteamVR")
|
||||
null
|
||||
} else {
|
||||
"${steamVRLocation}/bin/vrpathreg.sh"
|
||||
}
|
||||
}
|
||||
|
||||
if (pathRegPath == null) return
|
||||
|
||||
|
||||
val (findExitCode, _) = executeShellCommand(pathRegPath, "finddriver", "slimevr") ?: run {
|
||||
LogManager.warning("SteamVR driver installation failed: couldn't run vrpathreg finddriver")
|
||||
return
|
||||
@@ -40,6 +52,6 @@ class Linux {
|
||||
}
|
||||
|
||||
companion object {
|
||||
private const val LINUX_STEAM_DRIVER_DIRECTORY = "slimevr-openvr-driver-x64-linux"
|
||||
private const val LINUX_STEAM_DRIVER_DIRECTORY = "slimevr-openvr-driver"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user