Botspot / pi-apps

Raspberry Pi App Store for Open Source Projects
GNU General Public License v3.0
1.95k stars 202 forks source link

DDnet #1093

Closed Kolpixx closed 2 years ago

Kolpixx commented 2 years ago

Is this app installable with sudo apt install?

Yes but the apt Version is outdated.

If you've created a zip file for this app, upload it here DDnet.zip

I did not tested it on x64 but im shure it will also work there. I will try it later today or tomorrow. And when it works i will send a ZIP File with the install script for x64 (i think it's the same as for 32x xD)

Here is the newest Version:

https://github.com/Botspot/pi-apps/issues/1093#issuecomment-955682513

cycool29 commented 2 years ago

This will work in a script as bash will replace $HOME with the path. It won't work if you put that straight in the desktop file.

Who wrote this lol. This is right.

Directly calling $HOME, doesn't work, but this does:

echo "[Desktop Entry]
Name=Temps
Comment=Temps is a beautiful weather app that resides in your system tray.
GenericName=Weather App
Exec=temps
Icon=$(echo $HOME)/pi-apps/apps/Temps/icon-64.png
StartupNotify=true
Terminal=false
Type=Application
Categories=Utility;
" | sudo tee /usr/share/applications/Temps.desktop

Uhh, echo $HOME should work same with $HOME.

Crilum commented 2 years ago

Well, :man_shrugging:. I don't know.

Itai-Nelken commented 2 years ago

I edited them back.

Anyway what I wanted to say is that referencing $HOME will work as long as it's in the install script and not straight in the desktop file. For example putting

path=$HOME/folder/binary

Straight in the desktop file won't work, but doing this will work:

echo "Path=$HOME/folder/binary" > /path/to/applications/app.desktop
Crilum commented 2 years ago

@KolpixTV Sorry for starting a discussion in your app request.. :smiley:

@Botspot Could you enable Discussions for things like this?

Kolpixx commented 2 years ago

No Problem.

So is there a ZIP File with the Final script that works? If not what do i have to change?

cycool29 commented 2 years ago

No Problem.

So is there a ZIP File with the Final script that works? If not what do i have to change?

I am not familiar with this game, you may try with my latest zip here. If everything works well, that should be the final one.

Kolpixx commented 2 years ago

Ok Thanks i'll try it :D

Kolpixx commented 2 years ago

it works fine

Botspot commented 2 years ago

Should we mention in the description that DDnet launches in fullscreen and ignores the Esc and F11 keys?

Itai-Nelken commented 2 years ago

Should we mention in the description that DDnet launches in fullscreen and ignores the Esc and F11 keys?

Certainly. maybe we should handle a way to exit ourselves (if it's possible)?

Botspot commented 2 years ago

Certainly. maybe we should handle a way to exit ourselves (if it's possible)?

Alt+F4 appears to work. Honestly, I'm tempted to install xephyr along with this app to run it in a window. :)

Botspot commented 2 years ago

Well that was easy. ddnet in xephyr Unfortunately the built-in mouse pointer does not work, but it was worth a shot.

Kolpixx commented 2 years ago

You can Go in the graphic settings and Turn Off fullscreen there

Itai-Nelken commented 2 years ago

You can Go in the graphic settings and Turn Off fullscreen there

Can we maybe do that automatically (by changing a config file) like stuntrally does?

cycool29 commented 2 years ago

You can Go in the graphic settings and Turn Off fullscreen there

Can we maybe do that automatically (by changing a config file) like stuntrally does?

That's easy. Just edit ~/.teeworlds/settings_ddnet.cfg and change gfx_fullscreen 1 to gfx_fullscreen 0. One-liner to do so:

sed -i s+"gfx_fullscreen 1"+"gfx_fullscreen 0"+g $HOME/.teeworlds/settings_ddnet.cfg

I think this can be added at the last of the install script.

Itai-Nelken commented 2 years ago

That's easy. Just edit ~/.teeworlds/settings_ddnet.cfg and change gfx_fullscreen 1 to gfx_fullscreen 0. One-liner to do so:

sed -i s+"gfx_fullscreen 1"+"gfx_fullscreen 0"+g $HOME/.teeworlds/settings_ddnet.cfg

I think this can be added at the last of the install script.

Does that file exist before running the program?

cycool29 commented 2 years ago

That's easy. Just edit ~/.teeworlds/settings_ddnet.cfg and change gfx_fullscreen 1 to gfx_fullscreen 0. One-liner to do so:

sed -i s+"gfx_fullscreen 1"+"gfx_fullscreen 0"+g $HOME/.teeworlds/settings_ddnet.cfg

I think this can be added at the last of the install script.

Does that file exist before running the program?

The file doesn't exist before first run. But we can simply create it:

mkdir $HOME/.teeworlds && echo "gfx_fullscreen 0" > $HOME/.teeworlds/settings_ddnet.cfg