You are not logged in.

#1 2008-07-09 10:51:42

ArchArael
Member
Registered: 2005-06-14
Posts: 504

skype opens received files with firefox [SOLVED]

Hi guys,

I have a problem with skype settings.

When I receive a file and click in the skype's File Transfers window it opens firefox pointing to: file:///home/myusername

Did someone had similar problems. hmm

I'm running openbox and would like to start thunar when I click on "open file" or "open file location".

I also tried

cd ~/.Skype/ && grep firefox . -r

but didn't get any useful information.

I also googled around but I didn't found any information about how to set thunar instead of firefox.

Thank you very much for any tip or suggestion. smile

Last edited by ArchArael (2008-07-09 16:23:27)

Offline

#2 2008-07-09 13:28:48

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: skype opens received files with firefox [SOLVED]

Skype probably uses xdg-utils to open files and, if I remember correctly, xdg-open script uses the browser to open files if it finds that neither kde, gnome, or xfce are running.

Offline

#3 2008-07-09 14:01:53

ArchArael
Member
Registered: 2005-06-14
Posts: 504

Re: skype opens received files with firefox [SOLVED]

Thank you fwojciec,

you are right. I was missing xdg-utils. And the command

xdg-open /home/myusername

opens the browser.

Right now I am googling and searching some way to use and configure xdg-utils in openbox.

I will post a solution if I find it.

Last edited by ArchArael (2008-07-09 14:03:56)

Offline

#4 2008-07-09 15:13:40

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: skype opens received files with firefox [SOLVED]

I don't know if there is a way to configure xdg-utils...  You can always edit the script itself, find the section that says:

    generic)
    open_generic "$url"
    ;;

And change it to

    generic)
    open_xfce "$url"
    ;;

It's a nasty hack, and it will get overwritten when xdg-utils package is updated, but it should produce the effect you're looking for.

Offline

#5 2008-07-09 16:29:36

ArchArael
Member
Registered: 2005-06-14
Posts: 504

Re: skype opens received files with firefox [SOLVED]

Thank you again fwojciec,

Inspired by your suggestion I looked at the xdg-open script and noticed this code:

#--------------------------------------
# Checks for known desktop environments
# set variable DE to the desktop environments name, lowercase

detectDE()
{
    if [ x"$KDE_FULL_SESSION" = x"true" ]; then DE=kde;
    elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome;
    elif xprop -root _DT_SAVE_MODE | grep ' = \"xfce4\"$' >/dev/null 2>&1; then DE=xfce;
    fi
}

Then I just added this to my .config/openbox/autostart.sh

export DE=xfce

And now skype opens thunar instead of firefox. big_smile

Maybe there are better solutions but this one just works...and I even don't have to modify my xdg-open script so I can also upgrade xdg-utils without worrying. cool

Thank you again for the suggestion...

ArchArael

Last edited by ArchArael (2008-07-09 17:16:57)

Offline

#6 2008-07-09 17:08:39

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: skype opens received files with firefox [SOLVED]

That's much more elegant than what I came up with smile

Offline

Board footer

Powered by FluxBB