Results 1 to 10 of 10

Thread: Launch a special chrome browser.Is Kde possible?

  1. #1

    Default Launch a special chrome browser.Is Kde possible?

    Hi all,
    I would like after opensuse finishes with the booting sequence to launch a special chrome window that will include 3 tabs with the specified urls. I guess this is not the hardest part and I will be able to write such a simple script.
    This open browser will have my important tasks for the day and I would like somehow to keep it separate from my second chrome window that will contain all the different tabs for my day to day activities.

    If possible that special chrome window should have a separate task bar color (is that possible at all?), which I guess means that I will need to use kde capabilities and not being stackable with all the other chrome windows at my taskbar.

    Have you seen something like in kde.?

    Regards and thanks
    Alex

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,851

    Default Re: Launch a special chrome browser.Is Kde possible?

    I assume that you need a running GUI session for that. Thus your system should not only have booted, but at least one user must have been loged in also.

    The first step to tackle IMHO.
    Henk van Velden

  3. #3

    Default Re: Launch a special chrome browser.Is Kde possible?

    Thanks for clarifying this. I meant by booting all the process including the log in with my user. Sorry for the misunderstanding
    Alex

  4. #4
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,644
    Blog Entries
    14

    Default Re: Launch a special chrome browser.Is Kde possible?

    There's a couple of ways to achieve this:

    - Save the tabs in Chrome as the ones to open on Chrome startup anyway
    Then
    - either put Chrome in your Autostart ( search systemsettings )
    - or set KDE to restore a saved session, open Chrome and save the session ( search systemsetting )
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  5. #5

    Default Re: Launch a special chrome browser.Is Kde possible?

    Thanks! This is what I am currently thinking. For some reason though my kde never restores my last chrome window (I just restarted my computer).
    Second I would like somehow push kde to use a different window layout for that specific window, that is the reasons that I thought that a bash script might better fill in this role.

    Thanks
    Alex

  6. #6
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,644
    Blog Entries
    14

    Default Re: Launch a special chrome browser.Is Kde possible?

    Quote Originally Posted by alaios View Post
    Thanks! This is what I am currently thinking. For some reason though my kde never restores my last chrome window (I just restarted my computer).
    Second I would like somehow push kde to use a different window layout for that specific window, that is the reasons that I thought that a bash script might better fill in this role.

    Thanks
    Alex
    KDE has nothing to do with your last Chrome window, and their devs are 100% right to stay away from trying. In Chrome itself you have settings for what to do on a new (first) session. You can set a number of sites/tabs to open ( like I do ), move on from where you last "were "( seems that's what you want ). Yet KDE can be made aware of Chrome being active in a session and restore that same session incl. Chrome ( which can be set to move on from last session ) ....

    Just think about this: KDE depends mainly on volunteer devs. Chrome is built by Google devs. The KDE guys and gals would have to follow all the changes the Google devs make to the bits and pieces the KDE devs are "talking too" or "asking stuff from".
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  7. #7

    Default Re: Launch a special chrome browser.Is Kde possible?

    Quote Originally Posted by Knurpht View Post
    KDE has nothing to do with your last Chrome window, and their devs are 100% right to stay away from trying. In Chrome itself you have settings for what to do on a new (first) session. You can set a number of sites/tabs to open ( like I do ), move on from where you last "were "( seems that's what you want ). Yet KDE can be made aware of Chrome being active in a session and restore that same session incl. Chrome ( which can be set to move on from last session ) ....

    Just think about this: KDE depends mainly on volunteer devs. Chrome is built by Google devs. The KDE guys and gals would have to follow all the changes the Google devs make to the bits and pieces the KDE devs are "talking too" or "asking stuff from".

    You have very good points here, and thanks for sharing.
    Still I should be able to write a simple bash script that launches two chrome windows at startup.

    The first chrome should have three tabs open. I guess the logic of the command will look like this
    chrome "firsturl" "secondurl" and so on
    and then one more chrome window for the rest of the needed browsing.



    I am not home now but I will try to write that simple script. The only open question is when I write my bashscript I Can pass some arguments to kde to make the color bar of one of the two chromes a different color.

    Regards
    Alex

  8. #8
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,851

    Default Re: Launch a special chrome browser.Is Kde possible?

    Code:
    chrome "firsturl" "secondurl"
    You must look into the Chrome documentation to find out if the Chrome CLI command supports such a thing and how. Or, what are the arguments (options and other fields) and in what sequence. For a "normal" Unix/Linux command you can find that in it's man page. have no idea if Chrome provides such a thing or what other documentation.
    Henk van Velden

  9. #9
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,917
    Blog Entries
    2

    Default Re: Launch a special chrome browser.Is Kde possible?

    IMO your original post can be split into two types of customizations...

    1. Launch chomium(or chrome) browser windows with multiple preset tab locations.
    Not difficult, eg
    https://askubuntu.com/questions/2854...-the-main-menu

    Just execute the above command as part of your Desktop startup so it's launched with your User's preferences and security.
    I assume running the same command a second time should launch a new, separate browser window.

    2. Modify the chromium UI. Unless you can find a specific setting for the object, it isn't possible without re-compiling the entire app, and that's a very, very big job (one of the larger projects I've worked on). The following link is to the start point for downloading and setting up a build environment, to build anything "chromium" you need to set up the build for every possible target (browser, OS, more). It'll also take a very long time to execute on any machine, so do this on a <very> powerful machine to shorten compile times as much as possible. Needless to say, Google Chrome Browser is a proprietary app and can't be modified (no public source code).

    https://www.chromium.org/developers/...s/get-the-code

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  10. #10
    Join Date
    Mar 2010
    Location
    Europe
    Posts
    657

    Default Re: Launch a special chrome browser.Is Kde possible?

    Quote Originally Posted by alaios View Post
    If possible that special chrome window should have a separate task bar color (is that possible at all?),
    For that you may want to take a look at creating special KWin Window Rules in Systemsettings > Window Management > Window Rules (or with the command
    Code:
    /usr/bin/kcmshell5 kwinrules
    )

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •