Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pi-apps will not install apps with urxvt #2471

Closed
3 tasks done
Silent-Hunter opened this issue Oct 23, 2023 · 14 comments
Closed
3 tasks done

pi-apps will not install apps with urxvt #2471

Silent-Hunter opened this issue Oct 23, 2023 · 14 comments
Labels
bug Something isn't working

Comments

@Silent-Hunter
Copy link

Silent-Hunter commented Oct 23, 2023

Confirmations

What happened?

pi-apps will not install apps with urxvt.

Description

When I try to install any app, pi-apps opens a window containing the text below:

Debug output below.
Default x-terminal-emulator: urxvt
�[91mFailed to locate any terminal emulators!!!�[39m

I was able to mitigate it by adding urxvt after line 37 of terminal-run, and then adding this after line 97:

  xterm -e bash -c "$commands" &

What are your system specs (run the following command in your terminal)?

OS: Debian GNU/Linux 11 (bullseye)
OS architecture: 64-bit
Last updated Pi-Apps on: 10/22/2023
Latest Pi-Apps version: 10/22/2023
Kernel: aarch64 6.1.21-v8+
Device model: Raspberry Pi 4 Model B Rev 1.5 
Cpu name: Cortex-A72
Ram size: 7.63 GB
Raspberry Pi OS image version: 2022-09-22
Language: en_US.UTF-8

(Recommended) Error log? Terminal output? Debug messages?

🭊🬹🬹🬹🬿                                                          
 🭇🬭🬭🬎🬭🬭🬭🬎🬭🬭🬼                                                       
 🮉  ▄ ▄ ▄  ▋   █▀▀🭍 ▄                                              
 🮉  ▄ ▄ ▄  ▋   █▄▄🭞 ▄ ▄▄ 🭂▀▀█ █▀▀🭍 █▀▀🭍 🭂🬰🬰🬰                       
 🮉  ▄ ▄ ▄  ▋   █    █    🭓▄▄█ █▄▄🭞 █▄▄🭞 ▄▄▄🭞                       
 🭦🭏🬭🬭🬭🬭🬭🬭🬭🭄🭛                  █    █                               
                                                                   
                                                                   
pipe is /tmp/tmp.FjuiClns4i
detailspid is /tmp/tmp.fizqJtilJZ
tail: warning: --retry only effective for the initial open

Updater mode: set-status

Checking for online changes... Done
Timestamps match.
Reading list file for ''...
Scanning apps... Done
Scanning files... Done
cat: /home/kavus/pi-apps/data/update-status/updatable-apps: No such file or directory
YAD_XID is 0x2800003
Timestamps match.
Reading list file for 'Games'...
YAD_XID is 0x2800003
Failed to locate any terminal emulators!!!
@Silent-Hunter Silent-Hunter added the bug Something isn't working label Oct 23, 2023
@github-actions
Copy link
Contributor

Hello there 👋
Thanks for submitting your first issue to the Pi-Apps project! We'll try to get back to you as soon as possible.
In the meantime, we encourage you join our Discord server, where you can ask any questions you might have.

Please respond as soon as possible if a Pi-Apps maintainer requests more information from you. Stale issues will be closed after a lengthy period of time with no response.

@Botspot
Copy link
Owner

Botspot commented Oct 23, 2023

Do you have any terminal emulators other than urxvt installed?

@Silent-Hunter
Copy link
Author

No I don't, it's the only one I use. I can install another to help test if need be.

@Botspot
Copy link
Owner

Botspot commented Oct 23, 2023

I can install another to help test if need be.

The list of supported terminals in the terminal-run script are treated as a fallback: if your preferred terminal (as chosen by x-terminal-emulator) is not in the list, then terminal-run will check if any other supported terminal is installed.

In other words, you are encountering this problem because you have uninstalled all other terminal emulators. If you had a supported terminal emulator installed, then terminal-run would use that one.
I will look into adding urxvt to terminal-run properly.

@Botspot
Copy link
Owner

Botspot commented Oct 23, 2023

I have added urxvt to terminal-run in commit 8e2f2bb.

Please update pi-apps manually by running ~/pi-apps/updater cli-yes. Then once that is done, you should be able to use pi-apps normally with your choice of terminal.

Thanks again for taking the time to reach out for help on this issue! Your issue report has made pi-apps just a little bit better for everyone. :)

@Sussy-OS
Copy link
Contributor

I have added urxvt to terminal-run in commit 8e2f2bb.

Please update pi-apps manually by running ~/pi-apps/updater cli-yes. Then once that is done, you should be able to use pi-apps normally with your choice of terminal.

Thanks again for taking the time to reach out for help on this issue! Your issue report has made pi-apps just a little bit better for everyone. :)

When updating via GUI, it provides an error. The error does not cause any problem, but it may throw some users off.

@Botspot
Copy link
Owner

Botspot commented Oct 23, 2023

When updating via GUI, it provides an error. The error does not cause any problem, but it may throw some users off.

What do you mean? What error? Did you see an error when updating terminal-run on your system, @Sussy-OS?

@Sussy-OS
Copy link
Contributor

When updating via GUI, it provides an error. The error does not cause any problem, but it may throw some users off.

What do you mean? What error? Did you see an error when updating terminal-run on your system, @Sussy-OS?

Yes, I did. I'm not sure exactly what it said, but I'll downgrade pi-apps and try again so I can get the error.

@Sussy-OS
Copy link
Contributor

Unable to open a terminal.
Debug output below.
Default x-terminal-emulator: lxterminal
Using lxterminal

image

@Sussy-OS
Copy link
Contributor

Here is the actual issue:

/home/james/pi-apps/etc/terminal-run: line 124: syntax error near unexpected token `do'
/home/james/pi-apps/etc/terminal-run: line 124: `/${terminalrun_pid} ];do'

@Sussy-OS
Copy link
Contributor

Sussy-OS commented Oct 23, 2023

I'm sure that line is intended, it's just causing an error for me. Restarting fixes the problem.

@Silent-Hunter
Copy link
Author

Thanks again for taking the time to reach out for help on this issue! Your issue report has made pi-apps just a little bit better for everyone. :)

Thank you for fixing the issue!

@Botspot
Copy link
Owner

Botspot commented Oct 23, 2023

Here is the actual issue:

/home/james/pi-apps/etc/terminal-run: line 124: syntax error near unexpected token `do'
/home/james/pi-apps/etc/terminal-run: line 124: `/${terminalrun_pid} ];do'

I know what happened. This can happen when a running script gets updated while it is running. Bash can lose track of where it was and get confused when the next lines of the file do not match what it was expecting. In the new commit f1b643b, I have encased the entire terminal-run script in {} characters to force bash to read the whole file on startup. Even one-time errors are important. Thanks for reporting, @Sussy-OS.

@Sussy-OS
Copy link
Contributor

Here is the actual issue:

/home/james/pi-apps/etc/terminal-run: line 124: syntax error near unexpected token `do'
/home/james/pi-apps/etc/terminal-run: line 124: `/${terminalrun_pid} ];do'

I know what happened. This can happen when a running script gets updated while it is running. Bash can lose track of where it was and get confused when the next lines of the file do not match what it was expecting. In the new commit f1b643b, I have encased the entire terminal-run script in {} characters to force bash to read the whole file on startup. Even one-time errors are important. Thanks for reporting, @Sussy-OS.

Oh, okay. No problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants