Page 1 of 1

Changing the default terminal app (Solved)

Posted: Thu Aug 18, 2022 4:54 pm
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 1979 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 1979 times

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

Thanks.


Re: Changing the default terminal app

Posted: Thu Aug 18, 2022 7:41 pm
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.


Re: Changing the default terminal app

Posted: Fri Aug 19, 2022 2:45 am
by bigpup

What exact Puppy version?


Re: Changing the default terminal app

Posted: Fri Aug 19, 2022 2:57 am
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 1944 times

.
.


Re: Changing the default terminal app

Posted: Sat Aug 20, 2022 7:42 pm
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.


Re: Changing the default terminal app (Solved)

Posted: Thu Sep 01, 2022 6:50 pm
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?


Re: Changing the default terminal app (Solved)

Posted: Thu Sep 01, 2022 7:20 pm
by rockedge

I think mime configurations look for xterm


Re: Changing the default terminal app (Solved)

Posted: Fri Sep 02, 2022 1:21 am
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-$$ &


Re: Changing the default terminal app (Solved)

Posted: Fri Sep 02, 2022 2:34 am
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.