Tip: "Please wait" message box habang loading ang Firefox
Palagi kong napapansin sa mga customers ko na kung medyo matagal mag-load ang Firefox pagkatapos nilang i-click yung icon sa launcher, may tendency na i-click nila yung icon ng paulit-ulit. Ang resulta nito ay biglang dadami ang lalabas na browser windows. Minodify ko yung desktop launcher ng Firefox upang:
(a) May lalabas na simpleng "please wait" message box (o small splash screen), at
(b) Isang instance lang ng Firefox ang papayagang na mag-run kahit na paulit-ulit na click nila ang icon habang naglo-load ang Firefox.
Ang procedure na ito ay applicable sa Ubuntu 12.04 gamit ang Unity desktop. Depende sa setup ninyo, maaaring may konting pagbabago.
(1) Siguraduhing naka-install ang
yad package
.
(2) Kopyahin ang Firefox desktop launcher sa local Firefox folder.
cp /usr/share/applications/firefox.desktop ~/.mozilla/firefox/
(3) Buksan yung desktop file.
gedit ~/.mozilla/firefox/firefox.desktop
(4) Maaaring alisin ang karamihan sa mga nakasulat. Ang maiiwan na text ay kagaya ng sumusunod:
[Desktop Entry]
Version=1.0
Name=Firefox Web Browser
Comment=Browse the World Wide Web
GenericName=Web Browser
Keywords=Internet;WWW;Browser;Web;Explorer
Exec=firefox %u
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=firefox
Categories=GNOME;GTK;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall;
StartupNotify=true
(5) Ang line na imo-modify ay ang sumusunod:
Papalitan ito ng:
Exec=sh -c "if [ `pidof -x firefox | wc -w` -eq 0 ] ; then yad --timeout=15 --timeout-indicator=bottom --no-buttons --sticky --center --on-top --undecorated --skip-taskbar --image=firefox --text=' Mangyaring maghintay ng ilang saglit \n habang naglo-load ang Firefox.\n Maraming salamat.\n' & firefox %u ; fi"
Ang numero sa --timeout= parameter ay maaaring palitan. Estimate kung ilang segundo ang kailangan sa paghintay bago lumitaw ang browser sa screen. Sa itaas na halimbawa, 15 segundo.
(6) Save ang file at isara ang text editor. Buksan ang folder kung saan nakasave ang na-modify na firefox.desktop file.
nautilus ~/.mozilla/firefox
(7) Drag lang ang firefox.desktop file mula sa Nautilus paputang Unity launcher. Pag click sa icon, ito ang lalabas:
This image is hidden for guests.
Please log in or register to see it.