Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[TIP] "save as" dialog firefox/thunderbird Qt/KDE like
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools)
View previous topic :: View next topic  
Author Message
skakz
Guru
Guru


Joined: 03 Jul 2004
Posts: 380
Location: Ischia/Napoli/Italia/Terra

PostPosted: Thu Jul 13, 2006 10:20 am    Post subject: [TIP] "save as" dialog firefox/thunderbird Qt/KDE Reply with quote

un pò in ritardo cmq.. aggiornamento:

Se non ci avete ancora fatto caso da un pò di tempo sia in firefox che in thunderbird il dialog "save as"
è diventato di default quello GTK (per indenderci questo)
Dunque ecco il modo per cambiare questo dialog in uno un pò più KDE/Qt style like (click qui)

per le versione >2.x di firefox/thunderbird basta editare prefs.js (oppure entrare in about:config)
e settare "ui.allow_platform_file_picker" su false.

segue vecchio metodo per le versioni <2.x

si tratta semplicemente di editare un file, ovvero /path/to/mozilla/components/nsFilePicker.js
quindi per firefox sarà /usr/lib/mozilla-firefox/components/nsFilePicker.js
per thunderbird /usr/lib/mozilla-thunderbird/components/nsFilePicker.js
se avete i bin installati /opt/firefox/components/nsFilePicker.js
e così via..

sostituite
Code:
function (compMgr, fileSpec, location, type)
{
    debug("registering (all right -- a JavaScript module!)");
    compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar);

    compMgr.registerFactoryLocation(FILEPICKER_CID,
                                    "FilePicker JS Component",
//@line 278 "/builds/tinderbox/Fx-Mozilla1.8.0....
                                    "",
//@line 280 "/builds/tinderbox/Fx-Mozilla1.8.0....
                                    fileSpec,
                                    location,
                                    type);
}


con questo
Code:
function (compMgr, fileSpec, location, type)
{
    debug("registering (all right -- a JavaScript module!)");
    compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar);

    compMgr.registerFactoryLocation(FILEPICKER_CID,
                                    "FilePicker JS Component",
//@line 278 "/builds/tinderbox/Fx-Mozilla1.8.0....
                                    FILEPICKER_CONTRACTID,
//@line 280 "/builds/tinderbox/Fx-Mozilla1.8.0....
                                    fileSpec,
                                    location,
                                    type);
}


perchè le modifiche abbiano effetto si deve resettare il registro chrome di firefox/thunderbird
questo lo potete fare disabilitando e successivamente riabilitando una estensione o installandone una nuova.
_________________
Linux Registered User n.340423
Linux User Group Ischia
www.tush.it


Last edited by skakz on Mon Dec 11, 2006 8:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
.:deadhead:.
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 2963
Location: Milano, Italy

PostPosted: Thu Jul 13, 2006 12:09 pm    Post subject: Reply with quote

:D :D Ma che gran figata!! Grazie mille davvero! E' molto + carino ora!
_________________
Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! ;)
Back to top
View user's profile Send private message
ercoppa
Guru
Guru


Joined: 10 Dec 2005
Posts: 371
Location: roma

PostPosted: Thu Jul 13, 2006 3:43 pm    Post subject: Reply with quote

grazie sei un mito!
Back to top
View user's profile Send private message
X-Act!
Apprentice
Apprentice


Joined: 22 Nov 2004
Posts: 245
Location: /home/xact/

PostPosted: Thu Jul 13, 2006 8:32 pm    Post subject: Reply with quote

Meraviglioso!

X me è un megatip! Non la sopportavo proprio quella finestrina gnome-like...

Grazie 1000!!
_________________
"Io non mi sento obbligato a credere che lo stesso Dio che ci ha dotato di senso, ragione ed intelletto intendesse che noi ne facessimo a meno."
-- Galileo Galilei
Back to top
View user's profile Send private message
Cazzantonio
Bodhisattva
Bodhisattva


Joined: 20 Mar 2004
Posts: 4514
Location: Somewere around the world

PostPosted: Fri Jul 14, 2006 2:33 am    Post subject: Reply with quote

unica cosa:
il secondo necessita qualche cosa tipo qt e/o pacchetti di kde installati?
_________________
Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne
Back to top
View user's profile Send private message
skakz
Guru
Guru


Joined: 03 Jul 2004
Posts: 380
Location: Ischia/Napoli/Italia/Terra

PostPosted: Fri Jul 14, 2006 7:48 am    Post subject: Reply with quote

Cazzantonio wrote:
il secondo necessita qualche cosa tipo qt e/o pacchetti di kde installati?


se non hai qt/kde installato semplicemente non ti carica il file picker "kde style like"...
suppongo ti continui a caricare quello vecchio..
_________________
Linux Registered User n.340423
Linux User Group Ischia
www.tush.it
Back to top
View user's profile Send private message
Dece
Apprentice
Apprentice


Joined: 23 Nov 2004
Posts: 291
Location: Bologna/Rimini Italy

PostPosted: Fri Jul 14, 2006 10:38 am    Post subject: Reply with quote

grazie skakz, mi hai finalmente reso libero da quella odiosissima finestra, gran tip :)
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Fri Jul 14, 2006 11:58 am    Post subject: Reply with quote

Wow, ULTRA-MEGA tip 8)

Sarebbe da integrarlo negli ebuild di Firefox, magari con abilitazione opzionale tramite USE "kde" :P
_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
skakz
Guru
Guru


Joined: 03 Jul 2004
Posts: 380
Location: Ischia/Napoli/Italia/Terra

PostPosted: Fri Jul 14, 2006 5:00 pm    Post subject: Reply with quote

Scen wrote:
Sarebbe da integrarlo negli ebuild di Firefox, magari con abilitazione opzionale tramite USE "kde" :P


a dire il vero non penso ci siano contro indicazioni per chi non usa qt/kde nel settare questo file picker..
semplicemente (penso) caricherà quell'altro.. poi magari qualcuno che non usa kde potrà confermarlo.
quindi in teoria non dovrebbero servire patch, use o altro.. si dovrebbe poter avere una soluzione unica per tutti.. onestamente non so da cosa sia nata questa scelta dei developers di mozilla..
_________________
Linux Registered User n.340423
Linux User Group Ischia
www.tush.it
Back to top
View user's profile Send private message
drizztbsd
Retired Dev
Retired Dev


Joined: 21 Nov 2004
Posts: 278
Location: Cesano Maderno

PostPosted: Thu Aug 10, 2006 7:02 am    Post subject: KDE dialog per altre applicazioni GTK Reply with quote

Non so se lo sapete ma c'e' anche KGtk (c'e' in portage come ~) che permette a molte applicazioni Gtk (e QT) di avere il filepicker di kde
_________________
Gentoo/Alt lead
Gentoo/*BSD and Gentoo/FreeBSD deputy lead
Paludis contributor
Back to top
View user's profile Send private message
BikE
Guru
Guru


Joined: 21 Dec 2004
Posts: 455
Location: Genova

PostPosted: Thu Aug 10, 2006 8:42 am    Post subject: Re: KDE dialog per altre applicazioni GTK Reply with quote

Drizzt Do` Urden wrote:
Non so se lo sapete ma c'e' anche KGtk (c'e' in portage come ~) che permette a molte applicazioni Gtk (e QT) di avere il filepicker di kde


Purtroppo le applicazioni sono solo 4 o 5... firefox, kino, gimp... e bo...
Back to top
View user's profile Send private message
skakz
Guru
Guru


Joined: 03 Jul 2004
Posts: 380
Location: Ischia/Napoli/Italia/Terra

PostPosted: Mon Dec 11, 2006 8:56 pm    Post subject: Reply with quote

aggiornamento per versioni di firefox/thunderbird =>2.x al primo post
_________________
Linux Registered User n.340423
Linux User Group Ischia
www.tush.it
Back to top
View user's profile Send private message
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4787
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Mon Dec 11, 2006 10:48 pm    Post subject: Re: [TIP] "save as" dialog firefox/thunderbird Qt/ Reply with quote

skakz wrote:

per le versione >2.x di firefox/thunderbird basta editare prefs.js (oppure entrare in about:config)
e settare "ui.allow_platform_file_picker" su false.

Il salva con nome cambia, ma non cambia la finestra di dialogo relativa alla scelta delle applicazioni esterne (voglio dire, quella per scegliere come visualizzare i pdf). Come si farebbe per cambiare quella?
_________________
vu vu vu
gentù
mi piaci tu
Back to top
View user's profile Send private message
skakz
Guru
Guru


Joined: 03 Jul 2004
Posts: 380
Location: Ischia/Napoli/Italia/Terra

PostPosted: Fri Dec 15, 2006 8:37 am    Post subject: Reply with quote

puoi provare con KGtk come suggerito da Drizzt Do` Urden..
_________________
Linux Registered User n.340423
Linux User Group Ischia
www.tush.it
Back to top
View user's profile Send private message
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4787
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Sun Dec 17, 2006 1:16 pm    Post subject: Reply with quote

skakz wrote:
puoi provare con KGtk come suggerito da Drizzt Do` Urden..

grazie. farei un minitip:
Code:

s939 ~ # cat /etc/bash/bashrc|grep firefox
alias firefox="kgtk-wrapper firefox"

:)
_________________
vu vu vu
gentù
mi piaci tu
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum