Open All3xJ opened 3 years ago
You can create a .desktop file of the program you want to use. I can give an example in an hour. (I just woke up ;-))
[Desktop Entry]
Name=PROGRAM NAME
Comment=SOME DESCRIPTION, CAN BE THE SAME AS THE NAME
Exec=~/.local/share/junest/bin/junest -- PROGRAM
Terminal=False
Type=Application
Icon=PROGRAMNAME.png
Categories=CATEGORIES THE PROGRAM SHOULD BE LISTED IN.;
MimeType=MIMETYPE OF THE TYPE OF FILE YOU WANT TO OPEN WITH THE PROGRAM
For the Icon, you should go to ~/.junest/usr/share/icons/hicolor
and there look where the icon of the program is and copy it to the same place of ~/.local/share/icons/hicolor
Thanks for answer!
You can create a .desktop file of the program you want to use.
Yeah I know, I was just looking for something automated instead of manually creating a .desktop file actually
Maybe we can follow what Wine does with its generated StartMenu
items, which is then mirrored in ~/.local/share/applications
? Say, a command to do a detection of all items in ~/.junest/usr/share/applications
and then automatically convert detected .desktop files into .desktop files useable by host OS placed inside ~/.local/share/applications/junest
?
I think it'll especially help as while many packages are inside ~/.junest/usr/bin
there are a few created in ~/.junest/opt/
which doesn't seem to be picked up automatically by bin_wrappers but does create .desktop files inside ~/.junest/usr/share/applications
.
Thanks for answer!
You can create a .desktop file of the program you want to use.
Yeah I know, I was just looking for something automated instead of manually creating a .desktop file actually
That's a great idea! It might be as simple as updating the XDG_DATA_DIRS
variable like:
export XDG_DATA_DIRS=$XDG_DATA_DIRS:~/.junest/usr/share
I've never tested this though. This may only work if you update the PATH
variable first with the bin wrappers: https://github.com/fsquillace/junest#run-junest-installed-programs-directly-from-host-os
We'd need to check whether the PATH
update with bin_wrappers
gets picked up by the desktop. For that I guess a restart is needed first.
If this work 🤞, I will update the documentation.
That's a great idea! It might be as simple as updating the
XDG_DATA_DIRS
variable like:export XDG_DATA_DIRS=$XDG_DATA_DIRS:~/.junest/usr/share
Actually no, some .desktop
files contains absolute path under Exec
entry (like bssh
), whereas others don't (like htop
). So, it might be not that trivial.
in my case, absolute PATH is needed for the desktop file to work.
If I want to open a file with a program installed with junest, how can I do it in a easy and fast way?