You are not logged in.

#1 2018-01-21 15:03:08

arzhaan
Member
Registered: 2018-01-21
Posts: 8

[SOLVED] Change file manager used by Chrome on Xfce4

I'm running Chrome on Arch/Xfce4 and I've noticed that when using "Open File" it opens the folder in "Nautilus " file manager instead of PCManFM.

I tried switching default manager to something else and switching it back, but it didn't work. Editing

~/.local/share/applications/mimeapps.list

contain:

inode/directory=pcmanfm.desktop

and also had no effect.

So, is there any reasonable way to change the file manager used by Chrome?

Last edited by arzhaan (2018-01-22 05:36:51)

Offline

#2 2018-01-21 15:14:06

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,431

Re: [SOLVED] Change file manager used by Chrome on Xfce4

That isn't a file manager, but the file picker of GTK3 (which is also not nautilus, but has of course similar semantics because they are developed closely together). You can't replace it with a general purpose file manager.

The only other option you have is to tell chromium to use KDE's kdialog instead. Probably by installing that and passing

XDG_CURRENT_DESKTOP=KDE chromium

on startup

Offline

#3 2018-01-21 16:06:23

arzhaan
Member
Registered: 2018-01-21
Posts: 8

Re: [SOLVED] Change file manager used by Chrome on Xfce4

Did not help:( This demo

Offline

#4 2018-01-21 16:09:41

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Change file manager used by Chrome on Xfce4

Of course putting it in ~/.bash_profile won't help, that's only for applications that you launch from a terminal.

Does it work if you edit chromes .desktop file?

Last edited by Slithery (2018-01-21 16:10:35)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2018-01-21 16:21:47

arzhaan
Member
Registered: 2018-01-21
Posts: 8

Re: [SOLVED] Change file manager used by Chrome on Xfce4

slithery wrote:

Does it work if you edit chromes .desktop file?

I edited

~/local/share/applications/chromium.desktop

But still did not help. View the screenshots.

Offline

#6 2018-01-21 16:49:53

seth
Member
Registered: 2012-09-03
Posts: 50,018

Re: [SOLVED] Change file manager used by Chrome on Xfce4

bash_pofile has about zero impact on your desktop shell.

Try to export the value from an interctive shell (to be sure it's set) and run chromium from there (ensure no chromium process is running at that time)
Also you'll probably have to have at least kdialog installed to make this a reasonable approach.

If it works, export the environment variable correctly to your desktop shell - especially that desktop service is invalid now.

Online

#7 2018-01-21 17:11:13

arzhaan
Member
Registered: 2018-01-21
Posts: 8

Re: [SOLVED] Change file manager used by Chrome on Xfce4

That isn't a file manager, but the file picker of GTK3 (which is also not nautilus, but has of course similar semantics because they are developed closely together).

GtkFileChooserDialog? How to disable or reprogram that all software not used  "GtkFileChooserDialog"?

Offline

#8 2018-01-21 17:14:43

arzhaan
Member
Registered: 2018-01-21
Posts: 8

Re: [SOLVED] Change file manager used by Chrome on Xfce4

seth wrote:

Also you'll probably have to have at least kdialog installed to make this a reasonable approach.

I installed the kdialog, but did not help. And tried to export, also no effect was seen.

Offline

#9 2018-01-21 19:46:23

seth
Member
Registered: 2012-09-03
Posts: 50,018

Re: [SOLVED] Change file manager used by Chrome on Xfce4

I don't know whether chromium will ever invoke any other dialog than the (quite shitty) gtk3 one, but you should elaborate on "tried to export" since you do not really seem to know how to do this.

Online

#10 2018-01-22 05:36:15

arzhaan
Member
Registered: 2018-01-21
Posts: 8

Re: [SOLVED] Change file manager used by Chrome on Xfce4

Thank you all who replied! Will have to humble ourselves with it. Question I close.

Offline

#11 2018-01-22 14:19:42

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,431

Re: [SOLVED] Change file manager used by Chrome on Xfce4

You are unnecessarily overcomplicating this.  Run

XDG_CURRENT_DESKTOP=KDE chromium

  from a terminal. If that works, adjust the desktop file to include that at the Exec= line.

Offline

Board footer

Powered by FluxBB