chromebrew / crew-launcher

9 stars 5 forks source link

crew-launcher need some help with icon #17

Open 2spade opened 2 years ago

2spade commented 2 years ago

Hello Chromebrew devs,

Wow, I am loving this package manager. It has installed just about everything I wanted/needed. With the exception of Libreoffce.

So, I mounted the root-fs and dev-image (bind mount) onto ubuntu install media. Then installed Libreoffice7.3 deb file(s) onto the mounted filesystem. Unmounted then rebooted back into chromeos. Libreoffice starts from the shell and runs great!

Ok so now I want an icon launcher. First problem I noticed was that crew-launcher add would not work (saying Liberoffice was not installed). So I added 2 files to the "meta" folder - libreoffice.filelist & libreoffice.directorylist......solved that problem. Next crew-launcher add said it could not find the .desktop file. So I added the full path of the dot desktop file in libreoffice.filelist..........solved that problem.

Now, it says it can not find the icon. I have tried adding full icon path to Icon= in the desktop file...but no luck. I have tried some other things but......no luck.

I know that I am close here.....just need a hint(s)

Thanks in advance!

2spade commented 2 years ago

ok, I am making some headway based on a comment made here: https://github.com/chromebrew/crew-launcher/issues/8

So, it seems like the crew-launcher only looks at the dot filelist. So I generated all the files from where libreoffice is install in /opt directory. And.....it works! Sort of, a linking icon is generated and link starts libreoffice but its the wrong icon.

2spade commented 2 years ago

ok...........figured it out! now have the correct launcher icon on my shelf that opens Libreoffice.

I did it by make a few changes to the main.rb file on my system (made a back up, of course, before doing).

I will put more detail on a future post. Actually on the crew-launcher section.

uberhacker commented 2 years ago

That is great @2spade. Maybe you can submit a pull request of your changes?

2spade commented 2 years ago

Hi Ed,

Thanks for that reply. Yes, I am in the process of reproducing my results on a fresh install of ChromeOS Flex. After that, I will put something together....best I can.

Just a side note. I'm noticing that some of these programs are launching w/ missing window decoration(s) (like maximize box and minimize line). if you run: $ thunar it launches with just the X window closer item. But run it below like this:

$ env GDK_BACKEND=x11 thunar

Wow....every item is is there in the upper right hand corner. If its not in dot desktop file (Exec part) this way, probably should be changed to that.

Best Regards,

On Fri, Jun 24, 2022 at 10:50:06AM -0700, Ed Reel wrote:

That is great @2spade. Maybe you can submit a pull request of your changes?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.*Message ID: <chromebrew/ @.***>

uberhacker commented 2 years ago

Good observation. It might make sense to create a bash wrapper script to simplify the launch.

2spade commented 2 years ago

yeah, I agree with that.

Things are going great so far on this ChromeOS flex install. I have the first instruction page done (see attached pdf). It takes you all the way from the fresh install to being able to launch libreoffice from the shell.

Hopefully will get pages 2-3 done very soon. I plan to show how to generate the chrome-launcher libreoffice icon. And then how to show installing PNG16 from source. There seems to be several gui binaries that will not launch without PNG16 (like imagemagick display command, evince, aqemu, ect....)

On Sat, Jun 25, 2022 at 08:27:18AM -0700, Ed Reel wrote:

Good observation. It might make sense to create a bash wrapper script to simplify the launch.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.*Message ID: <chromebrew/ @.***>

2spade commented 2 years ago

Ok.....sorry about that wait....the next phase took me some time.

So anyway the updated pdf attached now has instructions regarding how to make the icon really active. No need to open the shell! The icon just works.

Now about that PNG16 part......on the way.

Have a great day!

On Sat, Jun 25, 2022 at 12:55:54PM -0400, Tobin Demos wrote:

yeah, I agree with that.

Things are going great so far on this ChromeOS flex install. I have the first instruction page done (see attached pdf). It takes you all the way from the fresh install to being able to launch libreoffice from the shell.

Hopefully will get pages 2-3 done very soon. I plan to show how to generate the chrome-launcher libreoffice icon. And then how to show installing PNG16 from source. There seems to be several gui binaries that will not launch without PNG16 (like imagemagick display command, evince, aqemu, ect....)

On Sat, Jun 25, 2022 at 08:27:18AM -0700, Ed Reel wrote:

Good observation. It might make sense to create a bash wrapper script to simplify the launch.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.*Message ID: <chromebrew/ @.***>