Skip to content

Commit

Permalink
clean up / move files around for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
alkazar committed May 7, 2024
1 parent 489e344 commit 388fae2
Show file tree
Hide file tree
Showing 86 changed files with 100 additions and 130 deletions.
3 changes: 3 additions & 0 deletions bin/32x
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash

/usr/libexec/chimera/launcher 32x picodrive "$@"
3 changes: 3 additions & 0 deletions bin/3do
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash

/usr/libexec/chimera/launcher 3do opera "$@"
File renamed without changes.
3 changes: 3 additions & 0 deletions bin/arcade
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash

/usr/libexec/chimera/launcher arcade mame "$@"
3 changes: 3 additions & 0 deletions bin/atari-2600
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash

/usr/libexec/chimera/launcher atari-2600 stella2014 "$@"
3 changes: 3 additions & 0 deletions bin/atari-7800
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash

/usr/libexec/chimera/launcher atari-7800 prosystem "$@"
File renamed without changes.
3 changes: 3 additions & 0 deletions bin/dreamcast
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash

/usr/libexec/chimera/launcher dreamcast flycast "$@"
File renamed without changes.
3 changes: 3 additions & 0 deletions bin/gb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash

/usr/libexec/chimera/launcher gb mgba "$@"
3 changes: 3 additions & 0 deletions bin/gba
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash

/usr/libexec/chimera/launcher gba mgba "$@"
3 changes: 3 additions & 0 deletions bin/gbc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash

/usr/libexec/chimera/launcher gbc mgba "$@"
3 changes: 3 additions & 0 deletions bin/genesis
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash

/usr/libexec/chimera/launcher genesis genesis_plus_gx "$@"
File renamed without changes.
3 changes: 3 additions & 0 deletions bin/jaguar
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash

/usr/libexec/chimera/launcher jaguar virtualjaguar "$@"
3 changes: 3 additions & 0 deletions bin/msdos
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

/usr/libexec/chimera/launcher msdos dosbox_pure "$@"
3 changes: 3 additions & 0 deletions bin/n3ds
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash

/usr/libexec/chimera/launcher n3ds citra "$@"
3 changes: 3 additions & 0 deletions bin/n64
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash

/usr/libexec/chimera/launcher n64 mupen64plus_next "$@"
3 changes: 3 additions & 0 deletions bin/nds
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

/usr/libexec/chimera/launcher nds desmume "$@"
3 changes: 3 additions & 0 deletions bin/neo-geo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash

/usr/libexec/chimera/launcher neo-geo mame "$@"
3 changes: 3 additions & 0 deletions bin/nes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash

/usr/libexec/chimera/launcher nes nestopia "$@"
2 changes: 1 addition & 1 deletion launchers/ngc → bin/ngc
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
rm -f ~/.local/share/chimera/content/ngc/dolphin-emu/Sys
mkdir -p ~/.local/share/chimera/content/ngc/dolphin-emu
ln -s /usr/share/dolphin-emu/sys ~/.local/share/chimera/content/ngc/dolphin-emu/Sys
/usr/share/chimera/bin/launcher ngc dolphin "$@"
/usr/libexec/chimera/launcher ngc dolphin "$@"
3 changes: 3 additions & 0 deletions bin/ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash

/usr/libexec/chimera/launcher ps1 mednafen_psx_hw "$@"
2 changes: 1 addition & 1 deletion launchers/ps2 → bin/ps2
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ if [ ! -e ~/.config/retroarch/system/pcsx2 ]; then
ln -s ~/.local/share/chimera/content/ps2 ~/.config/retroarch/system/pcsx2/bios
fi

/usr/share/chimera/bin/launcher ps2 pcsx2 "$@"
/usr/libexec/chimera/launcher ps2 pcsx2 "$@"
3 changes: 3 additions & 0 deletions bin/saturn
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash

/usr/libexec/chimera/launcher saturn kronos "$@"
3 changes: 3 additions & 0 deletions bin/sega-cd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash

/usr/libexec/chimera/launcher sega-cd genesis_plus_gx "$@"
3 changes: 3 additions & 0 deletions bin/sgb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash

/usr/libexec/chimera/launcher sgb mesen-s "$@"
3 changes: 3 additions & 0 deletions bin/sgg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash

/usr/libexec/chimera/launcher sgg genesis_plus_gx "$@"
3 changes: 3 additions & 0 deletions bin/sms
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash

/usr/libexec/chimera/launcher sms genesis_plus_gx "$@"
3 changes: 3 additions & 0 deletions bin/snes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash

/usr/libexec/chimera/launcher snes snes9x "$@"
7 changes: 7 additions & 0 deletions bin/snesmsu1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#! /bin/bash
romname="${@%.zip}"
mkdir tmp
fuse-zip -r "$@" tmp
/usr/libexec/chimera/launcher snesmsu1 snes9x "$HOME/.local/share/chimera/content/snesmsu1/.snesmsu1/tmp/$romname"
fusermount -u tmp
rmdir tmp
2 changes: 1 addition & 1 deletion launchers/spsp → bin/spsp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /bin/bash

ln -s /usr/share/libretro/ppsspp/assets ~/.local/share/chimera/content/spsp/PPSSPP
/usr/share/chimera/bin/launcher spsp ppsspp "$@"
/usr/libexec/chimera/launcher spsp ppsspp "$@"
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions bin/tg-16
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash

/usr/libexec/chimera/launcher tg-16 mednafen_pce_fast "$@"
18 changes: 0 additions & 18 deletions bin/toggle-steamos-compositor

This file was deleted.

2 changes: 1 addition & 1 deletion launchers/wii → bin/wii
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
rm -f ~/.local/share/chimera/content/wii/dolphin-emu/Sys
mkdir -p ~/.local/share/chimera/content/wii/dolphin-emu
ln -s /usr/share/dolphin-emu/sys ~/.local/share/chimera/content/wii/dolphin-emu/Sys
/usr/share/chimera/bin/launcher wii dolphin "$@"
/usr/libexec/chimera/launcher wii dolphin "$@"
4 changes: 2 additions & 2 deletions chimera_app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ def merge_single_level(src1, src2):
if not os.path.isfile(os.path.join(RESOURCE_DIR, 'views/base.tpl')):
RESOURCE_DIR = "/usr/share/chimera"

BIN_PATH = os.path.abspath('bin')
BIN_PATH = os.path.abspath('libexec')
if not os.path.isdir(BIN_PATH):
BIN_PATH = "/usr/share/chimera/bin"
BIN_PATH = "/usr/libexec/chimera"

BANNER_DIR = context.DATA_HOME + '/chimera/images'
DATA_DIR = context.DATA_HOME + '/chimera/data'
Expand Down
4 changes: 2 additions & 2 deletions chimera_app/platforms/flathub.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import requests
from typing import List, Dict
from chimera_app.platforms.store_platform import StorePlatform, dic
from chimera_app.config import RESOURCE_DIR, BANNER_DIR
from chimera_app.config import RESOURCE_DIR, BANNER_DIR, BIN_PATH
from chimera_app.steam_config import status_to_collection_name


FLATPAK_WRAPPER = "bin/flatpak-wrapper"
FLATPAK_WRAPPER = os.path.join(BIN_PATH, 'flatpak-wrapper')


def listdir(path):
Expand Down
2 changes: 1 addition & 1 deletion chimera_app/platforms/gog.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def _install(self, content) -> subprocess:
ensure_directory(cachedir)

if not content.native:
cmd = ["bin/gog-install",
cmd = [os.path.join(BIN_PATH, 'gog-install')
content.content_id,
os.path.join(CONTENT_DIR, 'gog', content.content_id)]
return subprocess.Popen(cmd,
Expand Down
9 changes: 0 additions & 9 deletions chimera_app/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,15 +604,6 @@ def steam_restart():
redirect('/actions')


@route('/actions/steam/compositor')
@authenticate
def steam_compositor():
try:
subprocess.call(["bin/toggle-steamos-compositor"])
finally:
redirect('/actions')


@route('/emulators/yuzu')
@authenticate
def emulators_yuzu():
Expand Down
7 changes: 3 additions & 4 deletions chimera_app/splash_screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@

class SplashScreen:
def __init__(self):
bin_path = BIN_PATH
self.__app = os.path.join(bin_path, 'chimera-splash')
self.__fg = os.path.join(bin_path, 'gamescope-fg')
self.__app = os.path.join(BIN_PATH, 'chimera-splash')
self.__fg = os.path.join(BIN_PATH, 'gamescope-fg')

def launch(self) -> None:
print("Showing splash screen")
subprocess.Popen([self.__fg, self.__app])
subprocess.Popen([self.__fg, self.__app])
3 changes: 0 additions & 3 deletions launchers/32x

This file was deleted.

3 changes: 0 additions & 3 deletions launchers/3do

This file was deleted.

3 changes: 0 additions & 3 deletions launchers/arcade

This file was deleted.

3 changes: 0 additions & 3 deletions launchers/atari-2600

This file was deleted.

3 changes: 0 additions & 3 deletions launchers/atari-7800

This file was deleted.

3 changes: 0 additions & 3 deletions launchers/dreamcast

This file was deleted.

3 changes: 0 additions & 3 deletions launchers/gb

This file was deleted.

3 changes: 0 additions & 3 deletions launchers/gba

This file was deleted.

3 changes: 0 additions & 3 deletions launchers/gbc

This file was deleted.

3 changes: 0 additions & 3 deletions launchers/genesis

This file was deleted.

3 changes: 0 additions & 3 deletions launchers/jaguar

This file was deleted.

3 changes: 0 additions & 3 deletions launchers/msdos

This file was deleted.

3 changes: 0 additions & 3 deletions launchers/n3ds

This file was deleted.

3 changes: 0 additions & 3 deletions launchers/n64

This file was deleted.

3 changes: 0 additions & 3 deletions launchers/nds

This file was deleted.

3 changes: 0 additions & 3 deletions launchers/neo-geo

This file was deleted.

3 changes: 0 additions & 3 deletions launchers/nes

This file was deleted.

3 changes: 0 additions & 3 deletions launchers/ps1

This file was deleted.

3 changes: 0 additions & 3 deletions launchers/saturn

This file was deleted.

3 changes: 0 additions & 3 deletions launchers/sega-cd

This file was deleted.

3 changes: 0 additions & 3 deletions launchers/sgb

This file was deleted.

3 changes: 0 additions & 3 deletions launchers/sgg

This file was deleted.

3 changes: 0 additions & 3 deletions launchers/sms

This file was deleted.

3 changes: 0 additions & 3 deletions launchers/snes

This file was deleted.

7 changes: 0 additions & 7 deletions launchers/snesmsu1

This file was deleted.

3 changes: 0 additions & 3 deletions launchers/tg-16

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion org.chimeraos.app.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ Version=1.0
Terminal=false
Type=Application
Name=Chimera
Exec=/usr/share/chimera/bin/chimera-web-launcher
Exec=/usr/libexec/chimera/chimera-web-launcher
Icon=/usr/share/chimera/images/chimera-logo.png
10 changes: 4 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
entry_points={
'console_scripts': ['chimera = chimera_app.__main__:main']
},
scripts=['steam-tweaks',
'steam-patch',
],

data_files=[
('bin', glob('bin/*')),
('lib/systemd/system', glob('systemd/system/*')),
('lib/systemd/user', glob('systemd/user/*')),
('libexec/chimera', glob('libexec/*')),
('share/chimera/images', glob('images/*.png')),
('share/chimera/images/flathub', glob('images/flathub/*.png')),
('share/chimera/images/splash', glob('images/splash/*.png')),
Expand All @@ -25,9 +25,7 @@
('share/chimera/public', glob('public/*.webp')),
('share/chimera/config', glob('config/*.cfg')),
('share/chimera/config', glob('config/*.conf')),
('share/chimera/bin', glob('bin/*')),
('share/chimera/migrations', glob('migrations/*')),
('bin', glob('launchers/*')),
('share/doc/chimera', ['README.md']),
('share/doc/chimera', ['LICENSE']),
('share/applications', ['org.chimeraos.app.desktop']),
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Requires=dev-gboperator.device
After=dev-gboperator.device

[Service]
ExecStart=/usr/share/chimera/bin/chimera-cart-monitor
ExecStart=/usr/libexec/chimera/chimera-cart-monitor
Restart=always

[Install]
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 388fae2

Please sign in to comment.