Problems for installing texmacs on ubuntu

What happens if you do echo $TEXMACS_PATH and echo $PATH from the terminal?

echo $PATH gives

/home/dell/bin/TeXmacs-2.1.1-x86_64-pc-linux-gnu/TeXmacs/bin:/home/dell/bin/TeXmacs-2.1.1-x86_64-pc-linux-gnu/TeXmacs/bin:/home/dell/bin/TeXmacs-2.1.1-x86_64-pc-linux-gnu/TeXmacs/bin:/home/dell/bin/TeXmacs-2.1.1-x86_64-pc-linux-gnu/TeXmacs/bin:/home/dell/bin/TeXmacs-2.1.1-x86_64-pc-linux-gnu/TeXmacs/bin:/home/dell/bin/TeXmacs-2.1.1-x86_64-pc-linux-gnu/TeXmacs/bin:/home/dell/bin/TeXmacs-2.1.1-x86_64-pc-linux-gnu/TeXmacs/bin:/home/dell/bin/TeXmacs-2.1.1-x86_64-pc-linux-gnu/TeXmacs/bin:/home/dell/bin/TeXmacs-2.1.1-x86_64-pc-linux-gnu/TeXmacs/bin:/home/dell/bin/TeXmacs-2.1.1-x86_64-pc-linux-gnu/TeXmacs/bin:/home/dell/bin/TeXmacs-2.1.1-x86_64-pc-linux-gnu/TeXmacs/bin:/home/dell/anaconda3/bin:/home/dell/anaconda3/condabin:/home/dell/bin/TeXmacs-2.1.1-x86_64-pc-linux-gnu/TeXmacs/bin:/home/dell/bin/TeXmacs-2.1.1-x86_64-pc-linux-gnu/TeXmacs/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/dell/.local/bin:/home/dell/bin:/home/dell/.local/bin:/home/dell/bin:/home/dell/.local/bin:/home/dell/bin:/home/dell/.local/bin:/home/dell/bin:/home/dell/.local/bin:/home/dell/bin:/home/dell/.local/bin:/home/dell/bin:/home/dell/.local/bin:/home/dell/bin

and echo $TEXMACS_PATH gives

/home/dell/bin/TeXmacs-2.1.1-x86_64-pc-linux-gnu/TeXmacs

Ok, now it is the turn of

texmacs

from the terminal

this simply launches texmacs, as the default way I used before

Then IMHO the test is not conclusive. Again IMHO, In order to be able to test the effect of /etc/profile.d/texmacs.sh, you have to first make sure that

texmacs

from the terminal does not do anything when /etc/profile.d/texmacs.sh does not exist.

I guess there may be a way to refresh /etc/profile.d/? just like source ~/.zshrc?

Currently I can not reboot system because there are some jobs running on this machine.

I do not know, sorry. I usually log out and then back in again to test the changes to my desktop environment. I do not usually reboot for testing, but I donot know what is the effect of logging out on the jobs that are running on your machine.

great, i just log out and log in and texmacs indeed appears in Show Applications

BTW, because these jobs are running inside tmux, it is found that they are not terminated by the re-log-in process.

Thank you very much, pireddag : )

Yeah, instructions are problematic. If you copied-pasted them then that means you run

add-apt-repository "deb http://ftp.texmacs.org/TeXmacs/tmftp/repos/apt/ yakkety universe"

The codename yakkety refers to 16.04. For 20.04 youā€™ve to modify this to focal. Mixing repos of different releases is discouraged for Debian-based distros and even if a package is installed it may not run correctly. In genera the following line can be run which adds the correct repo for the Ubuntu version

add-apt-repository "deb http://ftp.texmacs.org/TeXmacs/tmftp/repos/apt/ $(lsb_release -c | awk '{print $2}') universe"

Itā€™ll be nice if we had TexMacs distributed as snap or/and flatpak alongside those native packages.

Yes, Iā€™ve already manually chosen the correct one for my ubuntu, but the problem still remainsā€¦

Iā€™ve experimented a bit with Flatpak here:
https://gitlab.act.reading.ac.uk/j.wouters/tm-flatpak/

Plugins in general donā€™t work very well, though, due to the sandboxing nature of Flatpak. Iā€™m therefore hesitant to distribute a Flatpak version until an elegant solution can be found.

1 Like

Hi @pireddag, this is a follow-up question, is it possible to add texmacsā€™s icon to this application by hand?
Currently, it does not have icon at all.

I am using Xubuntu, but maybe on Ubuntu it is the same: the application can be edited directly from the menu (right click and ā€œEdit applicationsā€) and as far as I can see the icons in TeXmacs are in misc/images/

Please let me know if you need more details.

Thanks a lot!

Although I am not fully understand your suggestions, nevertheless, based on the location of the icon you mentioned, I simply change Icon=texmacs to make it equal to the location of the icon png file, which works immediately even without restart/log-out-log-in :slight_smile:

1 Like