Skip to content

Commit 16bc3c0

Browse files
Merge pull request #272 from AndreWohnsland/dev
fix launcher exiting too early
2 parents 3e2be5d + 9a760bb commit 16bc3c0

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

scripts/launcher.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ create_or_update_venv() {
2929

3030
# launcher.sh for CocktailBerry
3131
export QT_SCALE_FACTOR=1
32-
cd ~/CocktailBerry/ || echo "Did not find ~/CocktailBerry/" && exit
32+
cd ~/CocktailBerry/ || echo "Did not find ~/CocktailBerry/"
3333
create_or_update_venv
3434
uv run --python "$(python -V | awk '{print $2}')" --all-extras runme.py

scripts/setup.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,8 @@ if [ "$1" = "dashboard" ]; then
8686
fi
8787
else
8888
echo "> Setting up CocktailBerry"
89-
{
90-
echo "export QT_SCALE_FACTOR=1"
91-
echo "cd ~/CocktailBerry/"
92-
echo "uv venv --system-site-packages --python \"\$(python -V | awk '{print \$2}')\""
93-
echo "uv run --python \"\$(python -V | awk '{print \$2}')\" --all-extras runme.py"
94-
} >>~/launcher.sh
89+
sudo cp ~/CocktailBerry/scripts/launcher.sh ~/launcher.sh
90+
sudo chmod +x ~/launcher.sh
9591
echo "> Installing PyQt"
9692
sudo apt-get -y install qt5-default pyqt5-dev pyqt5-dev-tools || sudo apt-get -y install python3-pyqt5 || echo "ERROR: Could not install PyQt5"
9793
echo "> Installing needed Python libraries, including qtsass, this may take a while depending on your OS, so it is time for a coffee break :)"

src/migration/qt_migrator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
fi
1818
}
1919
20-
cd ~/CocktailBerry/ || echo "Did not find ~/CocktailBerry/" && exit
20+
cd ~/CocktailBerry/ || echo "Did not find ~/CocktailBerry/"
2121
create_or_update_venv
2222
uv run --python "$(python -V | awk '{print $2}')" --all-extras runme.py
2323
"""

0 commit comments

Comments
 (0)