Tagged: system browser menu association
- This topic has 15 replies, 4 voices, and was last updated Dec 12-12:24 pm by Ninho.
-
AuthorPosts
-
December 11, 2017 at 4:11 am #3578Member
Ninho
Hi ! Following good advice from these threads, I downloaded and am running Epipjany aka “(Gnome) Web” on this unfortunately flaky board (“memtest86” block move test will throw faults all the way). Good news is, while the comp cannot run windows any more, antiX is much more tolerant and even stable on it ! Firefox will ceash sooner rather than later, but I never know if it’s the machine faulting or it(s just buggy FF.
Question re. Web/Epiphany : how do I integrate it properly in AntiX 16 w/ default Rox-ICEwm ?
ATM I’m launching it by ‘clicking’ the script (/usr/bin/epiphany-browser) drag’d & drop’d to the desktop for conveniance.
There has to be a more correct way to install links to the app, both to the Desktop and Menus !Furthermore in the current setting, when/if I ‘click’ an URL albeit from inside “Web”, the system tries to launch Firefox (!) which I absolutely want to avoid that hungry memory hog ! How can I make “Gnome Web” the default browser and associate web URLs with it ?
TIA !
—
Ninho
System: Host: ANTIX Kernel: 4.4.10-antix.1-486-smp i686 (32 bit)
Desktop: IceWM 1.3.8
Distro: antiX-16_386-full Berta Cáceres 26 June 2016
Machine: Device: desktop System: American Megatrends product: K7S41 v: 1.0
Mobo: N/A model: K7S41 v: 1.0
BIOS: American Megatrends v: P2.80 date: 10/18/2006
CPU: Single core AMD Sempron 2400+ (-UP-) cache: 256 KB
speed: 1680 MHz (max)
Graphics: Card: Silicon Integrated Systems [SiS] 661/741/760 PCI/AGP or 662/761Gx PCIE VGA Display Adapter
Display Server: X.Org 1.16.4 drivers: fbdev (unloaded: modesetting,vesa)December 11, 2017 at 4:39 am #3579Forum Admin
rokytnji
::Find the /user/share/application/xxxxxxx.desktop file for epihany and drag and drop it to rox desktop instead.
The locate command in Terminal in AntiX should help you find it by using locate> name of browser typed in after that> hit enter key.
Or use searchmonkey instead.
Sometimes I drive a crooked road to get my mind straight.
Not all who Wander are Lost.
I'm not outa place. I'm from outer space.Linux Registered User # 475019
How to Search for AntiX solutions to your problemsDecember 11, 2017 at 5:21 am #3580MemberNinho
::Thank You, Rokytnji ! Found it indeed at /usr/share/xfce4/helpers/epiphany.desktop .
When dropped onto the desktop, it created a nice icon but ALAS ! if I mouse-click it,
all we get is an error box with a red (X) and stating :
“Can’t find Exec command in .desktop file ‘/usr/share/xfce4/helpers/epiphany.desktop”/Here’re the contents of the .desktop file as text (omitting a lot of foreign language name lines for brevity). Obviously smthing is missing, will you please help fix it ?
[Desktop Entry]
Version=1.0
Icon=web-browser
Type=X-XFCE-Helper
Name=Epiphany Web Browser
Name[ar]=متصفّح الوِب إبِفَني
Name[ast]=Restolador web Epiphany
Name[zh_TW]=Epiphany 網路瀏覽器
StartupNotify=true
X-XFCE-Binaries=epiphany;
X-XFCE-Category=WebBrowser
X-XFCE-Commands=%B;
X-XFCE-CommandsWithParameter=%B “%s”;—
NinhoDecember 11, 2017 at 6:12 am #3582Moderator
caprea
December 11, 2017 at 6:56 am #3583MemberNinho
::Look under /usr/share/applications for epiphany.desktop, this will work.
Aha ! Yes, it does ! Thank you so much ! … Now please, help me make Gnome Web the default app for lauching web shortcuts (URLs), if possible. Also, how can I add an icon for it to the ROX-ICEwm menu ?
TIA
—
Ninho
Learning a new thing each day. while forgetting a hundred :=(December 11, 2017 at 7:21 am #3584Moderator
caprea
::In antix-control-center under desktop you find preferred applications. There you can set the Web-browser.
Try if the webbrowser icon in the menu now opens epiphany.- This reply was modified 5 years, 4 months ago by caprea.
December 11, 2017 at 7:57 am #3592MemberNinho
::Yep! Perfect… Just one more thing if you will – not a vital thing, but
just to make me a fully happy camper :
Probably because this app is intended for Gnome rather than what we have,
window controls do not work as usual in ICEWM. I’ve found more or less easily
how to move, resize… its window using alt+ respective mouse button), but I can’t for
the salvation of my soul find a way to roll-up (usually Alt+F12 under our WM).
Is there a solution ?December 11, 2017 at 11:49 am #3605Anonymous
::how can I add an icon for it to the ROX-ICEwm menu ?
Normally, it would be detected and automatically added into the menu, but Guh-nome apps tend to “foul the works” by including proprietary junk in the .desktop file. For example, you may find a line stating OnlyShowIn=Gnome (instructs menumaker to ignore it when building menus for other desktop environments)
If you post the full content of /usr/share/applications/epiphany.desktop we can flesh out the problematic line(s)
(or, at your discretion, leave out any Name[lang_code]= and Comment[lang_code]= lines when pasting)Alt+F12 does not roll-up as expected
? Have you checked to ensure that keybind is currently specified, within ~/.icewm/keys
If it is, and the keybind works to toggle rollup for other aplications but not Guh-NomeWeb… (will require further proprietary-busting research)? Does the application even present a titlebar, or izzit the wonky chromeless Guh-nome presentation?
(If titlebar is displayed, should be able to able to command rollup via right-click on titlebar, even in the absence of a keybind)
^———- There’s a .conf trick/hack to suppress the Guh-nomey “hide titlebar” behavior, I don’t recall what, offhandDecember 11, 2017 at 5:29 pm #3612MemberNinho
::Hi Skidoo !
how can I add an icon for it to the ROX-ICEwm menu ?
Normally, it would be detected and automatically added into the menu, but Guh-nome apps tend to “foul the works” by including proprietary junk in the .desktop file. For example, you may find a line stating OnlyShowIn=Gnome (instructs menumaker to ignore it when building menus for other desktop environments)
If you post the full content of /usr/share/applications/epiphany.desktop we can flesh out the problematic line(s)
Also noticing your other post of today’s about .desktop . Very informative !
Let’s go for Epiphany.desktop (abridged) :
___________________________________________
[Desktop Entry]
Name=Web
Name[an]=Web
# lotsa lines omitted jere and later below
# for whole range of non-English languages ///
# …
GenericName=Web Browser
X-GNOME-FullName=Epiphany Web Browser
Comment=Browse the web
Keywords=web;browser;internet;
Exec=epiphany %U
StartupNotify=true
Terminal=false
Type=Application
Icon=web-browser
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=epiphany
X-GNOME-Bugzilla-Component=General
X-GNOME-Bugzilla-Version=3.14.1
X-GNOME-UsesNotifications=true
Categories=Network;GNOME;GTK;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;multipart/related;application/x-mimearchive;message/rfc822;
—————————————————————————–I used the GUI package manager (Synaptic) to download and install the package (epiphany-browser and dependences) which for sure did not create any GUI shortcut for the new browser.
Alt+F12 does not roll-up as expected
? Have you checked to ensure that keybind is currently specified, within ~/.icewm/keys
If it is, and the keybind works to toggle rollup for other aplications but not Guh-NomeWeb… (will require further proprietary-busting research)
? Does the application even present a titlebar, or izzit the wonky chromeless Guh-nome presentation?It’s indeed supprssing/hiding the regular title-bar, so that neither Ctrl-F12 nor the usual (in Rox) double-middle-click trick work… Oh well as I said it’s no big deal.
I’m at this moment installing a second Antix-16 sytem, this time on the other comp, and old and poor but valiant P3 /384 Mbytes ! I forgot the exact couple of “apt” commands as advised for initial updating, gotta fetch the site… I think my brain memory cells are fading even more than those of the failing computer :=’
Edit : found’mantiX recommends using apt-get update followed by apt-get dist-upgrade in a terminal.
:=)
December 11, 2017 at 8:11 pm #3617Anonymous
::Hi.
On an antiX16.1 system (which is probably not fully updated) I tested, pasted (more-or-less) the content of the epiphany DesktopEntry you showed into a fresh .desktop file
and can confirm it’s not being added to icewm menu when UpdateMenus command is performed.
It’s okay in jwm and in fluxbox menus, but absent from icewm.
Still testing trying to figure out the exact problem….=========================================
keywords/phrases (regarding “restore titlebar + window decorations to guh-nome applications”): client side decorations, csd, GtkHeaderBars
Hopefully, sudo apt install gtk3-nocsd will provide the solution (ref: https://packages.debian.org/stretch/gtk3-nocsd)
Please test, and post back to report whether it does. This also merits a Tips-n-Tricks topic, IMO.
(ref2: gtk3-nocsd project page at github)
The way I read it,some manual intervention is still necessary, post-installation.To avoid guh-nome GtkHeaderBars across all Gtk+ 3 apps (of current user), edit your ~/.bashrc and add the following lines:
export GTK_CSD=0
export LD_PRELOAD=<“full path” of your libgtk3-nocsd.so.0 file>(takes effect next time you logout and reenter desktop session)
The Debian package already comes with integration code to automatically disable CSDs when installed, so after package installation only a re-login is required to have CSDs disabled on non-GNOME desktops.
December 11, 2017 at 8:32 pm #3618Anonymous
::the usual (in Rox) double-middle-click trick work
okaybut… for the record, ROX doesn’t know anything about window decorations.
It’s the window manager (icewm, fluxfox, jwm) which paints the titlebars and provides the window minimize/maximize/rollup (right-click and/or) keybind commands.Alt+F12 does not roll-up as expected
I can’t guess whether the gnome apps will still trap/swallow the keybind after gtk3-nocsd is installed, but at least you’ll regain titlebar-right-click access to the rollup command.
December 11, 2017 at 9:02 pm #3619Anonymous
::Regarding the missing menu entry:
I’m wondering whether the installation did, in fact, complete successfully.
? What is the result when you open a terminal and type which epiphany
? Does the browser launch if you type epiphany at the command promptToday (just now) I learned:
Apparently, neither fluxbox nor icewm (or the menumaker routine for those) “care” whether the Exec= line contains a valid launchstring.
In my paste-n-test scenario, epiphany doesn’t exist on the system… yet menumaker happily parses the .desktop file and creates jwm+fluxbox menu entries for epiphany.
After changing “Exec=epiphany %U” to “Exec=geany %U” (geany is installed), menumaker finally created an icewm menu entry based on the new testing.desktop file.December 12, 2017 at 6:38 am #3628MemberNinho
::Updated findings :
+ A menu shortcut has been created inded for “Web” in Applications/Internet.
It wasn’t there yesterday I swear, prolly needed a reboot (the Windoze way !)+ Re. the hidden ICEWM menu bar. Actually, I’ve just now found it is accessible, but hardly,
as a one-pixel high border above the Gnomish title-bar (which you appear to hate, but in fairness is elegant while not so functionnal as it could be).
Carefully right-clicking the all but hidden and difficult-to-hit ICEWM line reveals the usual window actions menu (min/maximize, restaur and so on…) BUT the rollup/down & back/foreground actions are greyed out for this “Web” app anyway… I have no idea if this is app specific or applies to ALL Gnome applications under ICEWM.Cheers !
—
NinhoDecember 12, 2017 at 9:45 am #3633MemberNinho
::Update – replying to self because the forum did not take it as an edit to previous post,
possibly because of length limits ?which epiphany
/ usr / bin/ epiphany
~ epiphanyat the terminal, …DOES launch the “web” browser, after spitting errors/warnings to the Terminal. Np idea if it’s expected, nor if the same “errors” occur invisibly while launching Web normally, from a GUI shortcut. I can’t seem to copy the terminal”s output here,Forum rejecting my postings with an 403 saying something “potentially unsafe’ in there :=(
Can’t even attach as text file ! There : Terminal Output++ Oh and I am unsure I made it clear earluer, the guh-nome bar – as you like to call it – is STILL present after rebooting. Not that I care…but just to let you know.
—
Ninho- This reply was modified 5 years, 4 months ago by Ninho. Reason: attached terminal output as text
December 12, 2017 at 11:46 am #3637Anonymous
::The terminal output you shared indicates only nuisance warnings. To rid the first, you could install the package containing “accessibility toolkit”… but why bother? The line stating CRITICAL indicates some missing language file(s), can’t guess why that would be a critical issue & I have no idea what files the package maintainer(s) might have omitted (or presumed would already be present, or would be present b/c docs instruct user to manually select and install language packs).
the Gnomish title-bar (which you appear to hate, but in fairness is elegant while not so functionnal as it could be).
Yep, not so functional, non-configurable and non hideable (wastes vertical screen space) and, as is evident in this discussion… disrespects and interferes with the user’s chosen desktop environment… plenty of reasons to
hatedetest GtkHeaderBar..
STILL present after rebooting. Not that I care…but just to let you know.
Was my earlier post unclear? (too many words? word soup?)
To
get rid of GtkHeaderBarprevent GtkHeaderBar -flavored apps from hiding your window titlebars :
1) sudo apt install gtk3-nocsd
2) logout and reenter desktop session
-
AuthorPosts
- You must be logged in to reply to this topic.