This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Chrome show in Folder

Tags: None
(comma "," separated)
shaulyn
Registered Member
Posts
2
Karma
0

Chrome show in Folder

Fri Jan 04, 2019 10:13 am
Tell me why when in chrome you click on the file "show in Folder", the dolphin opens but the file is not highlighted, as it happens in firefox
shaulyn
Registered Member
Posts
2
Karma
0

Re: Chrome show in Folder

Sat Jan 05, 2019 10:31 am
1) create a directory, say chrome-fake-bin.

2) In that directory, create a file xdg-mime with the following 2 lines:
# !/bin/bash
echo "nautilus.desktop"

3) Also, create a file nautilus with the folowing contents:
# !/bin/bash
if [ "$1" = "--version" ]; then
echo "GNOME nautilus 3.14.3"; else
dolphin --select $1
fi

4) Optionally, change dolphin --select above to whatever you wish

5) chmod +x nautilus; chmod +x xdg-mime

6) Prepend "export PATH=/path/to/chrome-fake-bin:$PATH;" to the command that is used to open Google Chrome. In KDE, one can right-click the chrome shortcut,
click at "Edit Application", then edit the "Command" field in the "Application" tab
User avatar
rodrigokaff
Registered Member
Posts
2
Karma
0
OS

Re: Chrome show in Folder

Fri Oct 04, 2019 12:07 pm
Hey Shaulyn, copy and paste is too easy to do, don't you think?

Many of users, like me, is trying hard to use a different OS. We leaving our confort zone, we want to contribute to help to grow KDE. KDE is a magnificent Desktop Enviroment, is very customizable, functional, beautiful, and now is more polish than never.

- I changed Microsoft Office to LibreOffice
- I Changed CorelDraw and Illustrator to Inkscape
- I changed Photoshop to GIMP
- I changed Mailbird / AirMail to Mailspring
- I changed my Phone iOS to use an Android one.

So i traveled so far, because I really like KDE, my distro is Neon. Everything what I work with, I've changed my workflow to opensource software, and this take so many time to get used, to know where the tools is... So, if you really have a large knowledge in this subject Mr. shaulyn, do more than copy and paste.

Explain how to do these process... chmod +x... you specified to run this in terminal on step 5? or Even explain that is a command to make the file an executable?
ANd more, that user can be do this through clicking right button and making executable through the graphical enviroment?


Sometimes, some guys, think that everyone have the knowledge to solve simple problems. I have to tell, never has been too easy to use Linux than today. Have a distro for each taste, sure, sometimes you have to adjust for your own some details. And some details we just can't do it because we do not knwo how to do it, like this problem.

If anyone can help us with this problem, please, help us.

I searched for a solution, but, i do not find any tip or tutorial to solve this little problem. Sure, we can search for the file in our Dolphin, but, Downloads folder is always have a lot o files, and sometimes is hard to find the recently files, AND if Firefox can do, why chrome doesn't?

Mr. shaulyn, please take this as a reflection. Help people, and be helped. In the right way.

English is not my main language, so, sorry if have any wrong word. Like I said, we trying hard to use KDE, because we love this stuff.
airdrik
Registered Member
Posts
1854
Karma
5
OS

Re: Chrome show in Folder

Fri Oct 04, 2019 7:45 pm
Such long and largely irrelevant post to rant about the lack of knowledge share in the previous post. Sure it would have been nice for shaulyn to have shared more details about what the workaround is accomplishing and such, but there's no need to berate him for not explaining every nuance of his workaround, most of which is pretty standard stuff that only needs a little pocking around to figure out what's going on.

It does at least help to highlight the nature of the problem: Chrome appears to recognize that nautilus supports the --select argument but doesn't appear to recognize that dolphin also supports that same argument. My recommendation would be to file a case with Chrome(ium) to get that fixed, since it has nothing to do with the capabilities of KDE's software (as evidenced by the functionality working correctly when evoked from FireFox).


airdrik, proud to be a member of KDE forums since 2008-Dec.
maxts
Registered Member
Posts
2
Karma
0

Re: Chrome show in Folder

Wed Oct 16, 2019 12:36 pm
airdrik wrote:Such long and largely irrelevant post to rant about the lack of knowledge share in the previous post. Sure it would have been nice for shaulyn to have shared more details about what the workaround is accomplishing and such, but there's no need to berate him for not explaining every nuance of his workaround, most of which is pretty standard stuff that only needs a little pocking around to figure out what's going on.

It does at least help to highlight the nature of the problem: Chrome appears to recognize that nautilus supports the --select argument but doesn't appear to recognize that dolphin also supports that same argument. My recommendation would be to file a case with Chrome(ium) to get that fixed, since it has nothing to do with the capabilities of KDE's software (as evidenced by the functionality working correctly when evoked from FireFox).

I did everything suggested in second post, and still no success. Maybe it's because I don't have Nautilus installed on my computer?
airdrik
Registered Member
Posts
1854
Karma
5
OS

Re: Chrome show in Folder

Fri Oct 25, 2019 6:57 pm
It appears to have to do with what file managers Chrome recognizes (you could try searching through the chromium source code to see if there's a list somewhere), one of which is nautilus. As such it would appear that the suggested workaround taken as-is would require that Chrome recognize that you have nautilus installed (searching through the chromium source should reveal what criteria it uses to detect the different file managers). There may be other file managers which Chrome recognizes which could be used instead of nautilus as the target of the spoof, depending on what you have installed (prime candidates include nautilus forks: Caja or Nemo, as well as Thunar or PCManFM) (except not Thunar, which doesn't support the --select parameter; I don't know about PCManFM).


airdrik, proud to be a member of KDE forums since 2008-Dec.


Bookmarks



Who is online

Registered users: Bing [Bot], gfielding, Google [Bot], markhm, sethaaaa, Sogou [Bot], Yahoo [Bot]