fsquillace / junest

The lightweight Arch Linux based distro that runs, without root privileges, on top of any other Linux distro.
GNU General Public License v3.0
2.1k stars 110 forks source link

How can I open the programs installed inside junest without the need of using the terminal? #263

Open All3xJ opened 3 years ago

All3xJ commented 3 years ago

If I want to open a file with a program installed with junest, how can I do it in a easy and fast way?

PrivacyDragon commented 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 ;-))

PrivacyDragon commented 3 years ago
All3xJ commented 3 years ago

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

bayazidbh commented 2 years ago

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.

fsquillace commented 2 years ago

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.

fsquillace commented 2 years ago

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.

clemencyworld1 commented 2 years ago

in my case, absolute PATH is needed for the desktop file to work.