Skip to content

Commit 07b0932

Browse files
committed
Fix OBS config paths
1 parent f22d557 commit 07b0932

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

apps/birdhoused/lib/obs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var OBSWebSocket = require('obs-websocket-js').OBSWebSocket;
1010
// Also TODO figure out how the fuck to correctly get the password (*after* it's generated)
1111

1212
var obs = new OBSWebSocket();
13-
var websocketPassword = JSON.parse(fs.readFileSync(path.join(os.homedir(), '.var/app/com.obsproject.Studio/config/obs-studio/plugin_config/obs-websocket/config.json'))).server_password;
13+
var websocketPassword = JSON.parse(fs.readFileSync(path.join(os.homedir(), '.config/obs-studio/config/obs-studio/plugin_config/obs-websocket/config.json'))).server_password;
1414

1515
// TODO handle OBS not having started yet
1616
console.log('Connecting to OBS...');

bin/seagl-retrieve-obs-password

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
set -euo pipefail
44

5-
jq -r .server_password < ~seagloperator/.var/app/com.obsproject.Studio/config/obs-studio/plugin_config/obs-websocket/config.json
5+
jq -r .server_password < ~seagloperator/.config/obs-studio/config/obs-studio/plugin_config/obs-websocket/config.json

bin/seagl-setup-app

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function get_config_value() {
3030

3131
if [ "$arg" == obs ]; then
3232
rtmp_key=$(get_config_value .youtubeRtmpKey)
33-
sed -i "s/__YOUTUBE_STREAM_KEY__/$rtmp_key/" ~/.var/app/com.obsproject.Studio/config/obs-studio/basic/profiles/seagl_live/service.json
33+
sed -i "s/__YOUTUBE_STREAM_KEY__/$rtmp_key/" ~/.config/obs-studio/config/obs-studio/basic/profiles/seagl_live/service.json
3434
start_and_link_app com.obsproject.Studio
3535
elif [ "$arg" == nextcloud ]; then
3636
nextcloud --userid $(date +%Y)laptops --apppassword "$(get_config_value .nextcloudAppPassword)" --isvfsenabled 0 --serverurl 'https://cloud.seagl.org/' --localdirpath /home/seagloperator/Nextcloud

files/home-config/obs-studio/config/obs-studio/global.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ cy=580
8181
geometry=AdnQywADAAAAAAUnAAAAGQAAB34AAAGoAAAFJwAAABkAAAd+AAABqAAAAAAAAAAAB4AAAAUnAAAAGQAAB34AAAGo
8282

8383
[Locations]
84-
Configuration=/var/home/seagloperator/.var/app/com.obsproject.Studio/config
85-
SceneCollections=/var/home/seagloperator/.var/app/com.obsproject.Studio/config
86-
Profiles=/var/home/seagloperator/.var/app/com.obsproject.Studio/config
87-
PluginManagerSettings=/var/home/seagloperator/.var/app/com.obsproject.Studio/config
84+
Configuration=/var/home/seagloperator/.config/obs-studio/config
85+
SceneCollections=/var/home/seagloperator/.config/obs-studio/config
86+
Profiles=/var/home/seagloperator/.config/obs-studio/config
87+
PluginManagerSettings=/var/home/seagloperator/.config/obs-studio/config

0 commit comments

Comments
 (0)