Changing the default terminal app (Solved)

Post here if you feel others can duplicate your so discovered "bug"

Moderator: Forum moderators

Post Reply
packwood
Posts: 12
Joined: Tue Aug 16, 2022 7:54 am

Changing the default terminal app (Solved)

Post by packwood »

I wanted to use lxterminal by deafult so installed it.

I then changed the default app in Setup - Default Applications Chooser

If I start my terminal app from the task bar I get lxterminal

terminal2.png
terminal2.png (9.76 KiB) Viewed 1981 times

However if I start it from the icon (console) on the desktop it still starts rxvt

terminal1.png
terminal1.png (9.77 KiB) Viewed 1981 times

is this a bug in the default app setting as other defaults, like the browser, update as expected.

Thanks.

Last edited by packwood on Sat Aug 20, 2022 7:42 pm, edited 1 time in total.
User avatar
gychang
Posts: 591
Joined: Fri Aug 28, 2020 4:51 pm
Location: San Diego, CA
Has thanked: 206 times
Been thanked: 64 times

Re: Changing the default terminal app

Post by gychang »

packwood wrote: Thu Aug 18, 2022 4:54 pm

I wanted to use lxterminal by deafult so installed it.

I then changed the default app in Setup - Default Applications Chooser

If I start my terminal app from the task bar I get lxterminal

terminal2.png

However if I start it from the icon (console) on the desktop it still starts rxvt

terminal1.png

is this a bug in the default app setting as other defaults, like the browser, update as expected.

Thanks.

you may want to right click on the "console" desktop icon and remove it, then drag the lxterminal (/usr/bin/lxterminal) onto the desktop.

======

Puppy Bytes, utube videos
https://www.youtube.com/channel/UCg-DUU ... u62_iqR-MA

======

User avatar
bigpup
Moderator
Posts: 6974
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 901 times
Been thanked: 1520 times

Re: Changing the default terminal app

Post by bigpup »

What exact Puppy version?

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
bigpup
Moderator
Posts: 6974
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 901 times
Been thanked: 1520 times

Re: Changing the default terminal app

Post by bigpup »

The desktop console icon is setup to run a specific program.
It is not affected by what you do in the Default Applications Chooser.

right click on the desktop console icon and select Edit Item
The top slot has the information on what program to run.
Change it to /usr/bin/lxterminal or whatever the execute file is that runs Lxterminal.

Some of the other desktop icons work, when you change the default program, because they are setup to run the default program.
Example browser icon:

Screenshot.jpg
Screenshot.jpg (26.38 KiB) Viewed 1946 times

.
.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

packwood
Posts: 12
Joined: Tue Aug 16, 2022 7:54 am

Re: Changing the default terminal app

Post by packwood »

bigpup wrote: Fri Aug 19, 2022 2:57 am

The desktop console icon is setup to run a specific program.
It is not affected by what you do in the Default Applications Chooser.

right click on the desktop console icon and select Edit Item
The top slot has the information on what program to run.
Change it to /usr/bin/lxterminal or where ever the execute file is that runs Lxterminal.

Some of the other desktop icons work, when you change the default program, because they are setup to run the default program.
.

Perfect, now I can change both the app and text.

Thanks.

User avatar
mikeslr
Posts: 2952
Joined: Mon Jul 13, 2020 11:08 pm
Has thanked: 178 times
Been thanked: 909 times

Re: Changing the default terminal app (Solved)

Post by mikeslr »

Actually --and this isn't dependent on which Puppy I use, but FYI Fossapup64-- I was hoping a response here would solve a different problem. Regardless of which terminal application is setup as default via Menu>Setup>Default Application Chooser, Right-Clicking a script and selecting 'Run in Terminal' starts some --I don't know which-- very basic terminal emulator which (a) doesn't have an obvious method for ascertaining what application it is and (b) seems to lack any way to 'cut, paste & copy'.

How do I change 'run in terminal' to use a different terminal emulator?

User avatar
rockedge
Site Admin
Posts: 6525
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2736 times
Been thanked: 2616 times
Contact:

Re: Changing the default terminal app (Solved)

Post by rockedge »

I think mime configurations look for xterm

User avatar
mikeslr
Posts: 2952
Joined: Mon Jul 13, 2020 11:08 pm
Has thanked: 178 times
Been thanked: 909 times

Re: Changing the default terminal app (Solved)

Post by mikeslr »

Thanks, rockedge. Your response mentioning 'mime-type' cleared my 'brain fog'. Right-Clicked a script and rather than select 'Run in Terminal' I selected "customize menu". That opened the link to /rox/.config/rox.sourceforge.../SendTo/ for bash-scripts which showed it to be a symlink to /usr/local/apps/Run in Terminal. Right-Click>Show Target took me there, and "Look Inside" revealed the AppRun. Opening that in geany revealed:

#!/bin/sh
echo "#!/bin/sh
cd \"\$(dirname \"$@\")\"
\"$@\"
echo \"Script completed hit RETURN to close window.\"
read a
rm /tmp/runinterminal-$$">/tmp/runinterminal-$$
chmod 700 /tmp/runinterminal-$$
exec urxvt -title "$@" -e /tmp/runinterminal-$$ &

Emphasis added.

So, in my case urxvt appears to be the terminal used. [Why Middle-Click doesn't copy selected text may have to do with that process hating me, hence my preference for lxterminal].

If I'm not mistaken, I should be able to edit the above so that the operative line reads:

exec lxterminal -title "$@" -e /tmp/runinterminal-$$ &

User avatar
bigpup
Moderator
Posts: 6974
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 901 times
Been thanked: 1520 times

Re: Changing the default terminal app (Solved)

Post by bigpup »

urxvt appears to be the terminal used. [Why Middle-Click doesn't copy selected text

In urxvt highlighting copies.
That is all that is needed to copy.

Middle mouse button click pastes.

If you copy in urxvt by highlighting.

You can paste in other programs by using their right click menu paste and some also by middle mouse button click.

Anything you copy by using a programs right click menu copy.

You can paste in urxvt by clicking the middle mouse button.

All of this is going by the last item that is in the clipboard.

When you copy that becomes the last active item in the clipboard.

You can also select an item listed in the clipboard and make it the item to paste.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

Post Reply

Return to “Bug Reports”