LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   [Solved] Set Midori --private as default browser in XFCE 4.12 (https://www.linuxquestions.org/questions/linux-desktop-74/%5Bsolved%5D-set-midori-private-as-default-browser-in-xfce-4-12-a-4175628658/)

walker 04-29-2018 11:00 AM

[Solved] Set Midori --private as default browser in XFCE 4.12
 
I'm a bit strange but I want the things done as I want and not as who programmed the system wants.

I'd want to change the exo default web browser in XFCE 4.12 to start a midori private session but even if I unistalled every browser and installed only midori exo would always open midori without --private flag.

After some hours I found how to accomplish the task fuckin' exo around.

First of all (as root, as usual) remove default /etc/alternatives/x-www-browser which is a symlink to /usr/bin/midori

# rm /etc/alternatives/x-www-browser

Second create a plain ascii file which execute midori --private, let it be executable and generate the symlink to /etc/alternatives as x-www-browser

# echo exec midori --private > /usr/bin/midori-private

# chmod a+x /usr/bin/midori-private

# ln -fs /usr/bin/midori-private /etc/alternatives/x-www-browser

and the job is done!

Hope this could help someone which want the system does what he wants and not the way programmers want we do it.

Walker

j-ray 05-04-2018 04:13 AM

As this is solved we do not need it in the ZERO REPLIES LIST.


All times are GMT -5. The time now is 01:49 AM.