Results 1 to 6 of 6

Thread: Startup script get executed, but not in Startup Applications

  1. #1
    Join Date
    Jun 2010
    Location
    Novi Sad, Serbia
    Beans
    39
    Distro
    Ubuntu 10.04 Lucid Lynx

    Startup script get executed, but not in Startup Applications

    Hey guys, I have a problem...

    I wanted to tweak mouse acceleration in Gnome, and I found out how. I made a script with following contents:
    Code:
    #!/bin/sh
    xinput --set-prop "Logitech USB Optical Mouse" "Device Accel Constant Deceleration" 1
    xinput --set-prop "Logitech USB Optical Mouse" "Device Accel Velocity Scaling" 1
    That was some time ago. It works, it gets executed (after panels finish loading), but I don't remember how/from where. It's not in Startup Applications. So, where can it be?

  2. #2
    Join Date
    Nov 2007
    Beans
    70

    Re: Startup script get executed, but not in Startup Applications

    maybe in /etc/init.d or /etc/rc* folders

  3. #3
    Join Date
    Jun 2010
    Location
    Novi Sad, Serbia
    Beans
    39
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Startup script get executed, but not in Startup Applications

    @WyleECoyote: Yep, that's what Im grepping for right now.

    Code:
    sudo grep -r --exclude-dir="/data1" --exclude-dir="/data2" --exclude-dir="/windows" "Device Accel" *
    /data1, /data2 and /windows are automounted ntfs partitions...

    This should be over like, next thursday...

  4. #4
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Startup script get executed, but not in Startup Applications

    It may also be in /etc/rc.local, though that will be executed before the xsession, so probably not be the most likely place.

  5. #5
    Join Date
    Jun 2010
    Location
    Novi Sad, Serbia
    Beans
    39
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Startup script get executed, but not in Startup Applications

    Well, it gets executed only after I've logged on. It's still unchanged at gdm login screen. Is there any place else except Startup Applications (gnome-session-properties) that can a script be put in to start with Gnome?

  6. #6
    Join Date
    Jun 2010
    Location
    Novi Sad, Serbia
    Beans
    39
    Distro
    Ubuntu 10.04 Lucid Lynx

    Thumbs up Re: Startup script get executed, but not in Startup Applications

    Khm... nothing gets executed. I ran gnome-mouse-properties as gdm:
    Code:
    xhost +SI:localuser:gdm
    sudo -u gdm dbus-launcher gnome-mouse-properties
    and set both values to lowest, and there was no difference between mouse movement in gdm and Gnome. So I went to
    Code:
    /etc/gdm/Init/Default
    and added
    Code:
    xinput --set-prop "Logitech USB Optical Mouse" "Device Accel Constant Deceleration" 2
    xinput --set-prop "Logitech USB Optical Mouse" "Device Accel Velocity Scaling" 1
    just before exit 0 and got what I wanted in gdm. I then made
    Code:
    /etc/gdm/PostLogin/Default
    and wrote the same. Now I have it in Gnome, too. Just got to check out whether it's present in Openbox.
    Last edited by intheflesh; August 22nd, 2011 at 01:09 AM. Reason: It is.

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
  •