Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: Locking icons position

  1. #1
    Join Date
    Jul 2011
    Beans
    9

    Locking icons position

    Hi guys,

    I'm wondering if we can kind of "lock icons" on the desktop so they will not change positions when I play a 800*600 game.

    You know, when you have icons near the left side of your screen and after playing a game your icons are all smashed to the right side of the screen.

    Any clues? Thank's

  2. #2
    Join Date
    Jul 2011
    Beans
    6

    Re: Locking icons position

    Oh my god. I had this too when I used XFCE. I couldn't find the answer though. I sort of "solved" it by moving all the desktop icons into a second folder called "Desktop", which is on the actual desktop. I placed it in the top left corner of the screen. That's not the best solution though if you want desktop icons on the actual desktop... Hm. Did you try filing a bug report?

  3. #3
    Join Date
    Feb 2010
    Location
    Obscurial Springs
    Beans
    15,210
    Distro
    Ubuntu Budgie Development Release

    Re: Locking icons position

    Hello and Welcome

    I don't see anything in the configuration editor or advanced settings that allows what you want . I am curious what allows the icons to move when the game is used . Neither the configuration editor nor Ubuntu Tweak include a right or left placement option for desktop icons in 11.10 . I am on Ubuntu .so that may not be case for you .
    "Our intention creates our reality. "

    Ubuntu Documentation Search: Popular Pages
    Ubuntu: Security Basics
    Ubuntu: Flavors

  4. #4
    Join Date
    Jul 2011
    Beans
    9

    Re: Locking icons position

    Hi,

    thank's for your answers it's appreciated. For more precision I'll add that I run on Xubuntu 11.10

    @PD808
    your solution is pretty original . I didn't tried to filled a bug report because I didn't think this problem can be considered like a bug. Thank's for this suggestion, maybe it's the way to go.

    @Frogs Hair
    Well, the thing is when the game resize the screen in a lower resolution all icons change position to be visible for that newer resolution. And after when the desktop regain the normal resolution (when closing a game) it seems that nothing is replacing the icons at their initial position .

  5. #5
    Join Date
    Oct 2008
    Location
    Ottawa, Canada
    Beans
    813
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: Locking icons position

    Here's another solution for you.
    Run
    Code:
    sudo chattr +i ~/.config/xfce4/desktop/icons*
    This in effect renders your icon placement config file immutable.
    When you change resolution your icons will be shuffled around and will be out of place when your get back.
    However, the changes will not have been written to disk.
    To reload the desktop and the right placement, simply run 'xfdesktop --reload'. This can be conveniently made into a launcher.

    To unlock the config, replace +i for -i in the first command.

    Cheers!
    husband@wife$ make sandwich
    Permission denied
    husband@wife$ sudo make sandwich

  6. #6
    Join Date
    Jul 2011
    Beans
    9

    Re: Locking icons position

    @LewisTM
    Big thank's, that's a useful trick to know. I just need to remember to unlock the file when adding icons to the desktop .

  7. #7
    Join Date
    Dec 2011
    Beans
    9

    Re: Locking icons position

    Hi Lewis TM
    I tried your command, but i got this:

    chattr: Ingen sådan fil eller filkatalog while trying to stat /home/mik/.config/xfce4/desktop/icons*

    (Sorry, that was danish = "chattr: No such file or folder..."

    What went wrong ?
    Last edited by jamibair1; February 8th, 2012 at 11:00 AM. Reason: translation

  8. #8
    Join Date
    Oct 2008
    Location
    Ottawa, Canada
    Beans
    813
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: Locking icons position

    Quote Originally Posted by jamibair1 View Post
    Hi Lewis TM
    I tried your command, but i got this:

    chattr: Ingen sådan fil eller filkatalog while trying to stat /home/mik/.config/xfce4/desktop/icons*

    (Sorry, that was danish = "chattr: No such file or folder..."

    What went wrong ?
    Well it may be that the dir names are different in Danish?
    The full filename is typically 'icons.screen0.rc'
    You can try to find it with a search tool or with the locate command.
    husband@wife$ make sandwich
    Permission denied
    husband@wife$ sudo make sandwich

  9. #9
    Join Date
    Oct 2008
    Location
    Ottawa, Canada
    Beans
    813
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: Locking icons position

    A small trick I just discovered.
    The desktop has a built-in reload/refresh function, which is the F5 key, not surprisingly.
    So no real need for the reload command.
    If you add or rename items on a locked desktop they will still appear upon reload, except that without any known placement they will be thrown to the next available upper left spot.
    The ~/Desktop dir itself is not locked.
    Last edited by LewisTM; February 9th, 2012 at 06:11 PM.
    husband@wife$ make sandwich
    Permission denied
    husband@wife$ sudo make sandwich

  10. #10
    Join Date
    Dec 2011
    Beans
    9

    Re: Locking icons position

    [QUOTE=LewisTM;11672939]Well it may be that the dir names are different in Danish?
    The full filename is typically 'icons.screen0.rc'
    You can try to find it with a search tool or with the locate command.[/QUOTEm]

    Thank you for the answer. I'll now work with this. Am new in Ubuntu, so... Yep! I got work to do.

Page 1 of 3 123 LastLast

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
  •