SliTaz SliTaz Forum

You are not logged in.

#1 2013-07-10 18:02:00

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Gtkonly flavor: better separation from Core flavor, etc.

Really we have four distros (base, justx, gtkonly, core flavors) and we want to pay attention to each of them.

Just yesterday I've told that I'll not use anything but "Core", but today I've seen that "Gtkonly" is not too bad. But it have some obstacles. Again, in the Applications menu.

When I clicked some menu items, they not worked. And I know how — they need web browser to work. All these files you can find in the /usr/share/applications:

[*]cookutils-doc.desktop

[*]gpl-license.desktop

[*]httpd.desktop

[*]httpd-cgi.desktop

[*]system-doc.desktop

[*]tazinst.desktop

[*]tazlito-doc.desktop

[*]tazpkg-doc.desktop

Web browsers (tazweb and midori) you can find in the bigger, "Core" flavor.

Smaller "Gtkonly" flavor have no web browser, and we don't need to see this menu items. Am I right?

We need a pretty solution, but I can't find it. I can offer the following:

FreeDesktop Menu implementation have mechanism to automatic hidding of some items (see "TryExec").

[c][Desktop Entry]
Type=Application
Name=System Doc
Name[fr]=Doc du système
Name[pt]=Documentação do Sistema
Name[pt_BR]=Documentação do Sistema
Name[ru]=Системная документация
TryExec=tazweb
Exec=tazweb file:///usr/share/doc/slitaz/index.html
Icon=slitaz-doc
Categories=System;Documentation;[/c]
You'll see this menu item only if Menu implementation will find "tazweb" in the $PATH, and only if "tazweb" is executable. If we have no "tazweb", or if {we have "tazweb", but it not executable}, then "System Doc" will be hidden in the Application menu.

Obstacle only that this desktop really use "browser", not "tazweb". We should have "browser" executable script. We should not delete it. Maybe we can find a way to put /usr/share/browser only to "Core" flavor?

Offline

#2 2013-07-10 18:10:37

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Gtkonly flavor: better separation from Core flavor, etc.

Another obstacle is located in the /usr/share/applications/defaults.list:

[c][Default Applications]
audio/ogg=alsaplayer.desktop
audio/mp3=alsaplayer.desktop
audio/mpeg=alsaplayer.desktop

application/pdf=epdfview.desktop
application/x-shellscript=beaver.desktop
application/x-desktop=beaver.desktop
application/xml=beaver.desktop
application/x-php=beaver.desktop
application/x-cd-image=isomaster.desktop

text/plain=leafpad.desktop
text/html=midori.desktop

image/x-ico=viewnior.desktop
image/png=viewnior.desktop
image/jpeg=viewnior.desktop[/c]
But, "Gtkonly" flavor have only leafpad and viewnior among all these applications.

Fortunately, this is not a big error. Just absent *.desktop files and records leaves.

Plus /usr/share/applications/mimeinfo.cache file that not belongs to anyone package (auto generated), that contains some records to *.desktop files too.

Offline

#3 2013-07-10 18:19:17

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Gtkonly flavor: better separation from Core flavor, etc.

And, finally. In my humble opinion, I see no sense in "Dialog example" and "SQLite SQL Engine" in the "gtkonly". By the way, for what we need "sqlite3" in "gtkonly"?

Offline

#4 2013-07-10 18:24:46

mojo
Administrator
Registered: 2011-03-29
Posts: 2,173

Re: Gtkonly flavor: better separation from Core flavor, etc.

We should add tazweb and tazpanel to packages.list of gtkonly flavor.

There is a tazlito option to use a distro.sh script to do custom configurations.

http://hg.slitaz.org/flavors/file/872559412f0e/dolibarr/distro.sh

http://hg.slitaz.org/flavors/file/872559412f0e/proxy/distro.sh

First commit by Pascal Bellard for core-basic flavor which was renamed to gtkonly.

http://hg.slitaz.org/flavors/rev/9e09d46bfec1

It came with slitaz-tools-boxes which included the old gtk gui package manager,mountbox,ncurses installer. All those were removed and replaced by tazpanel which is not included.

Offline

#5 2013-07-10 21:20:35

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Gtkonly flavor: better separation from Core flavor, etc.

mojo,

I doubt that we need to add tazweb to gtkonly. My only opinion: slitaz-boxes in core-basic was simple and light. TazWeb is light too, but it need libwebkit — plus 5 MiB to flavor size, and minus 26 MiB from free memory (when installed in RAM). Who need tazpanel will boot core flavor.

Or maybe, anyone knows lighter web-browser+web-engine? Lighter — yes, but at same time full standard compliant? Possible, no.

I would also like to hear the Pascal's opinion.

What about unwanted *.desktop files — I see, script can remove them: http://hg.slitaz.org/flavors/file/872559412f0e/proxy/distro.sh#l78

How to do it in the gtkonly?

Or? Oh, mojo will added web browser to gtkonly. So I should not to remove any...

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]