Results 1 to 8 of 8

Thread: Silly request - applications centred at launch

  1. #1
    Join Date
    Jun 2008
    Beans
    20

    Wink Silly request - applications centred at launch

    This may seem trivial, but I was wondering if anyone knew how to get applications (like Firefox) to launch in the middle / centre of the screen / desktop as opposed to tacked to a corner.

    Thanks

  2. #2
    Join Date
    Feb 2007
    Location
    /dev/random
    Beans
    671
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Silly request - applications centred at launch

    Hi,

    No, not trivial. A principle point of FOSS is control belongs with the user, not some suit in a cube FF state information is contained a file located at ~/.mozilla/firefox/XXXXXXX.default/localstore.rdf where XXXXXXX will be some sequence of random characters.

    In that file look for this section:
    Code:
    <RDF:Description RDF:about="chrome://browser/content/browser.xul#main-window"
                       sizemode="normal"
                       width="1044"
                       height="798"
                       screenY="52"
                       screenX="4" />
    Change your positions and sizes there.
    Important: Backup the file first and do not have FF open while
    editing it.

    Edited again: Wow, that'll teach me ... I pulled the above from my notes from when I ran Edgy, sans compiz. I just tried it on Gutsy with compiz - no joy. Methinks FF gets placed by compiz? As this entry does get updated by FF when it's manually moved yet stubbonly insists on far left top corner on FF start.
    Last edited by niteshifter; June 9th, 2008 at 03:01 AM. Reason: Added important point
    Main system: Dell 1420n - C2D T5250, 4GB RAM, 120GB SATA. Ubuntu 8.04.3.
    Assorted VMs (via VBox). Favorites: Fedora, FreeBSD, Solaris.

  3. #3
    Join Date
    Jun 2008
    Beans
    20

    Re: Silly request - applications centred at launch

    Awesome thanks, but what does ~ mean?

  4. #4
    Join Date
    Apr 2008
    Beans
    232

    Re: Silly request - applications centred at launch

    Quote Originally Posted by zaklinux View Post
    Awesome thanks, but what does ~ mean?
    It's short for your home directory, just a shortcut.

    Code:
    home/yourname/directory  =  ~/directory

  5. #5
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Silly request - applications centred at launch

    run ccsm and check the options in "place windows" plugin.

  6. #6
    Join Date
    Apr 2006
    Location
    Alberta,Canada
    Beans
    1,135
    Distro
    Ubuntu Development Release

    Re: Silly request - applications centred at launch

    This has been a long standing point of contention between the Gnome devs and the app devs since time began.

    The app devs believe it is the window manager's job to set/remember the placement of app windows while the Gnome devs believe otherwise.
    What color do Smurfs turn when you choke em?
    ____________________________

  7. #7
    Join Date
    Feb 2007
    Location
    /dev/random
    Beans
    671
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Silly request - applications centred at launch

    Hi,

    This has been a long standing point of contention between the Gnome devs and the app devs since time began.

    The app devs believe it is the window manager's job to set/remember the placement of app windows while the Gnome devs believe otherwise.
    I think they're both correct: It's someone else's job. Which means, of course, that we need a windows registry

    <ducking, running>

    To recap for anyone following this thread:

    Use the technique I posted if you don't use compiz (or similar?)
    Use Griska's method if you do run compiz (ccsm, aka System/Preferences/Advanced Desktop Effects Settings)
    Main system: Dell 1420n - C2D T5250, 4GB RAM, 120GB SATA. Ubuntu 8.04.3.
    Assorted VMs (via VBox). Favorites: Fedora, FreeBSD, Solaris.

  8. #8
    Join Date
    Jun 2006
    Location
    $ pwd _
    Beans
    3,999
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Silly request - applications centred at launch

    And there is also Window Manager and Application independent way of controlling the window attributes: devilspie & wmctrl

    https://help.ubuntu.com/community/Devilspie
    http://ubuntu-tutorials.com/2007/07/...ects-in-gnome/
    http://burtonini.com/blog/computers/devilspie
    (wmctrl) http://www.linux.com/feature/122471?theme=print

Bookmarks

Posting Permissions

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