mirror of
https://github.com/dragoonDorise/EmuDeck.git
synced 2024-06-01 19:17:49 -04:00
parent
3a80d90187
commit
4491f31be0
|
@ -76,10 +76,10 @@ manageServicesMenu() {
|
|||
if [ $? != 0 ]; then
|
||||
csmMainMenu
|
||||
fi
|
||||
|
||||
|
||||
# Delete all old scripts that match file names from the github repo
|
||||
for i in "${arrAll[@]}"; do
|
||||
rm "$romsPath/cloud/$i"
|
||||
rm "$romsPath/cloud/$i"
|
||||
done
|
||||
|
||||
# Setup selected scripts
|
||||
|
@ -91,7 +91,7 @@ manageServicesMenu() {
|
|||
|
||||
# Import steam profile
|
||||
rsync -r "$EMUDECKGIT/configs/steam-input/emudeck_cloud_controller_config.vdf" "$HOME/.steam/steam/controller_base/templates/"
|
||||
|
||||
|
||||
# Notify to update & run SRM
|
||||
csmSRMNotification
|
||||
|
||||
|
@ -162,7 +162,7 @@ manageRPSMenu() {
|
|||
else
|
||||
arrAllRP+=(false "Spotify")
|
||||
fi
|
||||
|
||||
|
||||
SteamLink_IsInstalled
|
||||
ans=$?
|
||||
if [ "$ans" == "1" ]; then
|
||||
|
@ -287,7 +287,7 @@ manageRPSMenu() {
|
|||
--pulsate \
|
||||
--auto-close \
|
||||
--width=300
|
||||
|
||||
|
||||
# Notify to update & run SRM
|
||||
csmSRMNotification
|
||||
|
||||
|
@ -313,7 +313,7 @@ changeSettingsMenu() {
|
|||
else
|
||||
arrBrowsOpts+=(false "System Default: $defaultBrowser" false)
|
||||
fi
|
||||
|
||||
|
||||
# Add supported browsers to selection list
|
||||
for brows in "${arrSupBrows[@]}"; do
|
||||
if [[ "$(flatpak --columns=app list | grep "${brows}")" == *"${brows}"* ]]; then
|
||||
|
@ -376,7 +376,7 @@ changeLine() {
|
|||
|
||||
local OLD=$(printf '%s\n' "$KEYWORD" | sed -e 's/[]\/$*.^[]/\\&/g')
|
||||
local NEW=$(printf '%s\n' "$REPLACE" | sed -e 's/[]\/$*.^[]/\\&/g')
|
||||
|
||||
|
||||
sed -i "/^${OLD}/c\\${NEW}" "$FILE"
|
||||
}
|
||||
|
||||
|
@ -457,7 +457,6 @@ fixCloudScripts() {
|
|||
DEVICESCALEFACTOR_temp="$DEVICESCALEFACTOR"
|
||||
rm "$romsPath/cloud/cloud.conf"
|
||||
cp "$LOCALCLOUDFILES/cloud.conf" "$romsPath/cloud"
|
||||
cp "$LOCALCLOUDFILES/cloud.sh" "$romsPath/cloud"
|
||||
CLOUDSETTINGSFILE="$romsPath/cloud/cloud.conf"
|
||||
source "$CLOUDSETTINGSFILE"
|
||||
setCloudSetting BROWSERAPP "$BROWSERAPP_temp"
|
||||
|
@ -483,7 +482,6 @@ mkdir -p "$romsPath/cloud"
|
|||
mkdir -p "$romsPath/remoteplay"
|
||||
if [ ! -f "$romsPath/cloud/cloud.conf" ]; then
|
||||
cp "$LOCALCLOUDFILES/cloud.conf" "$romsPath/cloud"
|
||||
cp "$LOCALCLOUDFILES/cloud.sh" "$romsPath/cloud"
|
||||
CLOUDSETTINGSFILE="$romsPath/cloud/cloud.conf"
|
||||
source "$CLOUDSETTINGSFILE"
|
||||
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
LINK="https://luna.amazon.com/"
|
||||
|
||||
source ./cloud.conf
|
||||
source ./cloud.sh
|
||||
browsercommand
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
LINK="https://www.amazon.com/video"
|
||||
|
||||
source ./cloud.conf
|
||||
source ./cloud.sh
|
||||
browsercommand
|
||||
browsercommand
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
LINK="https://tv.apple.com/"
|
||||
|
||||
source ./cloud.conf
|
||||
source ./cloud.sh
|
||||
browsercommand
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
LINK="https://www.crave.ca/"
|
||||
|
||||
source ./cloud.conf
|
||||
source ./cloud.sh
|
||||
browsercommand
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
LINK="https://www.crunchyroll.com/"
|
||||
|
||||
source ./cloud.conf
|
||||
source ./cloud.sh
|
||||
browsercommand
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
LINK="https://discord.com/app"
|
||||
|
||||
source ./cloud.conf
|
||||
source ./cloud.sh
|
||||
browsercommand
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
LINK="https://www.disneyplus.com/"
|
||||
|
||||
source ./cloud.conf
|
||||
source ./cloud.sh
|
||||
browsercommand
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
LINK="https://emby.media/"
|
||||
|
||||
source ./cloud.conf
|
||||
source ./cloud.sh
|
||||
browsercommand
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
LINK="https://www.max.com/"
|
||||
|
||||
source ./cloud.conf
|
||||
source ./cloud.sh
|
||||
browsercommand
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
LINK="https://demo.home-assistant.io/"
|
||||
|
||||
source ./cloud.conf
|
||||
source ./cloud.sh
|
||||
browsercommand
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
LINK="https://www.hulu.com/"
|
||||
|
||||
source ./cloud.conf
|
||||
source ./cloud.sh
|
||||
browsercommand
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
LINK="http://localhost:8096"
|
||||
|
||||
source ./cloud.conf
|
||||
source ./cloud.sh
|
||||
browsercommand
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
LINK="https://nebula.tv/"
|
||||
|
||||
source ./cloud.conf
|
||||
source ./cloud.sh
|
||||
browsercommand
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
LINK="https://www.netflix.com/"
|
||||
|
||||
source ./cloud.conf
|
||||
source ./cloud.sh
|
||||
browsercommand
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
LINK="https://www.paramountplus.com/"
|
||||
|
||||
source ./cloud.conf
|
||||
source ./cloud.sh
|
||||
browsercommand
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
LINK="https://www.peacocktv.com/"
|
||||
|
||||
source ./cloud.conf
|
||||
source ./cloud.sh
|
||||
browsercommand
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
LINK="https://app.plex.tv/"
|
||||
|
||||
source ./cloud.conf
|
||||
source ./cloud.sh
|
||||
browsercommand
|
||||
|
|
|
@ -4,6 +4,5 @@ LINK="https://play.pocketcasts.com"
|
|||
|
||||
# shellcheck source=./cloud.conf
|
||||
source ./cloud.conf
|
||||
source ./cloud.sh
|
||||
|
||||
"/usr/bin/flatpak" run "${FLATPAKOPTIONS}" "${BROWSERAPP}" @@u @@ "${BROWSEROPTIONS}" ${LINK}
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
LINK="https://open.spotify.com/"
|
||||
|
||||
source ./cloud.conf
|
||||
source ./cloud.sh
|
||||
browsercommand
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
LINK="https://www.tiktok.com/"
|
||||
|
||||
source ./cloud.conf
|
||||
source ./cloud.sh
|
||||
browsercommand
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
LINK="https://www.twitch.tv/"
|
||||
|
||||
source ./cloud.conf
|
||||
source ./cloud.sh
|
||||
browsercommand
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
LINK="https://twitter.com/"
|
||||
|
||||
source ./cloud.conf
|
||||
source ./cloud.sh
|
||||
browsercommand
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
LINK="https://vimeo.com/"
|
||||
|
||||
source ./cloud.conf
|
||||
source ./cloud.sh
|
||||
browsercommand
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
LINK="https://www.xbox.com/play"
|
||||
|
||||
source ./cloud.conf
|
||||
source ./cloud.sh
|
||||
browsercommand
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
LINK="https://music.youtube.com/"
|
||||
|
||||
source ./cloud.conf
|
||||
source ./cloud.sh
|
||||
browsercommand
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
LINK="https://tv.youtube.com/"
|
||||
|
||||
source ./cloud.conf
|
||||
source ./cloud.sh
|
||||
browsercommand
|
||||
|
|
|
@ -3,5 +3,4 @@
|
|||
LINK="https://www.youtube.com/"
|
||||
|
||||
source ./cloud.conf
|
||||
source ./cloud.sh
|
||||
browsercommand
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
#!/bin/bash
|
||||
# prevent possible LD_PRELOAD entries from steam being passed to browser
|
||||
LD_PRELOAD=""
|
||||
|
||||
browsercommand() {
|
||||
{ # try flatpak with specified browserapp
|
||||
"/usr/bin/flatpak" run ${FLATPAKOPTIONS} ${BROWSERAPP} @@u @@ ${BROWSEROPTIONS} ${LINK}
|
||||
} || { # if that fails, try running the browserapp natively
|
||||
${BROWSERAPP} ${BROWSEROPTIONS} ${LINK}
|
||||
} || { # if browserapp fails, try looking up and using default browser given by xdg-settings
|
||||
DEFAULTBROWSERAPP=$(cat /usr/share/applications/"$(xdg-settings get default-web-browser)" | grep Exec= | head -n 1 | cut -d = -f 2 | cut -d " " -f1)
|
||||
${DEFAULTBROWSERAPP} ${BROWSEROPTIONS} ${LINK}
|
||||
}
|
||||
}
|
|
@ -3,5 +3,4 @@
|
|||
LINK="https://play.webrcade.com/"
|
||||
|
||||
source ./cloud.conf
|
||||
source ./cloud.sh
|
||||
browsercommand
|
||||
|
|
Loading…
Reference in a new issue