Posts: 3
Reljoy
Joined: 10 Apr 2016
#1
I want Iceweasel to start up automatically when I log in.
I found a thread here
forums.debian.net/viewtopic.php?f=5&t=120158
and I did (had to use sudo to make it work)
(I have had to put an extra space between the / and the etc everywhere to be able to post)

Code: Select all

cp /usr/share/applications/iceweasel.desktop / etc/xdg/autostart/
Since I did not want to force Iceweasel to start at the page google, I did not do the next bit

Code: Select all

sed -i 's/%u/google.com/g' / etc/xdg/autostart/iceweasel.desktop
I restarted the computer but it did not run Iceweasel.

So I tried the second command leaving out

Code: Select all

-i 's/%u/google.com/g'

Code: Select all

$ sudo sed / etc/xdg/autostart/iceweasel.desktop
but that did not work. It gave me an error.

Code: Select all

sed: -e expression #1, char 7: extra characters after command
I tried a few variations of putting in -i or putting in -e but I always got an error.

So now I'm turning to you guys as you probably know where I mucked it up.

Code: Select all

$ inxi -zv7
System:    Host: antixDell Kernel: 4.0.5-antix.1-486-smp i686 (32 bit gcc: 4.9.2)
           Desktop: IceWM 1.3.8 dm: slim
           Distro: antiX-15-V_386-full Killah P 30 June 2015
Machine:   System: Dell product: Latitude D610 Chassis: type: 8
           Mobo: Dell model: 0D4571 Bios: Dell v: A05 date: 08/11/2005
CPU:       Single core Intel Pentium M (-UP-) cache: 2048 KB
           flags: (nx pae sse sse2) bmips: 3724 speed/min/max: 1867/800/1867 MHz
Memory:    Using dmidecode: you must be root to run dmidecode
Graphics:  Card: Intel Mobile 915GM/GMS/910GML Express Graphics Controller
           bus-ID: 00:02.0 chip-ID: 8086:2592
           Display Server: X.Org 1.16.4 drivers: intel (unloaded: fbdev,vesa)
           Resolution: 1024x768@60.00hz, 1024x768@60.00hz
           GLX Renderer: Mesa DRI Intel 915GM x86/MMX/SSE2
           GLX Version: 2.1 Mesa 10.3.2 Direct Rendering: Yes
Audio:     Card Intel 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller
           driver: snd_intel8x0 ports: ed00 ec40 bus-ID: 00:1e.2 chip-ID: 8086:266e
           Sound: Advanced Linux Sound Architecture v: k4.0.5-antix.1-486-smp
Network:   Card-1: Broadcom NetXtreme BCM5751 Gigabit Ethernet PCI Express
           driver: tg3 v: 3.137 bus-ID: 02:00.0 chip-ID: 14e4:1677
           IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
           Card-2: Broadcom BCM4318 [AirForce 54g] 802.11a/b/g PCI Express Transceiver
           driver: b43-pci-bridge bus-ID: 03:03.0 chip-ID: 14e4:4319
           IF: wlan0 state: down mac: <filter>
           WAN IP: <filter> IF: eth0 ip: <filter> ip-v6: <filter>
           IF: wlan0 ip: N/A ip-v6: N/A
Drives:    HDD Total Size: 160.0GB (12.6% used)
           ID-1: /dev/sda model: SAMSUNG_HM160HC size: 160.0GB serial: S12TJF0SB67597
           Optical: /dev/sr0 model: TSST CDRW/DVD TSL462C
           rev: DE01 dev-links: cdrom,cdrw,dvd
           Features: speed: 24x multisession: yes
           audio: yes dvd: yes rw: cd-r,cd-rw state: running
Partition: ID-1: / size: 145G used: 17G (13%) fs: ext4 dev: /dev/sda1
           label: antiX15root uuid: 3fa4ac23-5ac5-42bd-b626-e4197624b303
           ID-2: swap-1 size: 2.17GB used: 0.00GB (0%) fs: swap dev: /dev/sda2
           label: swap uuid: f0ca727d-cc51-4e99-885d-88a98475267a
RAID:      No RAID data: /proc/mdstat missing-is md_mod kernel module loaded?
Unmounted: ID-1: /dev/ram0 size: 0.02G label: N/A uuid: N/A
           ID-2: /dev/ram1 size: 0.02G label: N/A uuid: N/A
           ID-3: /dev/ram2 size: 0.02G label: N/A uuid: N/A
           ID-4: /dev/ram3 size: 0.02G label: N/A uuid: N/A
           ID-5: /dev/ram4 size: 0.02G label: N/A uuid: N/A
           ID-6: /dev/ram5 size: 0.02G label: N/A uuid: N/A
           ID-7: /dev/ram6 size: 0.02G label: N/A uuid: N/A
           ID-8: /dev/ram7 size: 0.02G label: N/A uuid: N/A
           ID-9: /dev/ram8 size: 0.02G label: N/A uuid: N/A
           ID-10: /dev/ram9 size: 0.02G label: N/A uuid: N/A
           ID-11: /dev/ram10 size: 0.02G label: N/A uuid: N/A
           ID-12: /dev/ram11 size: 0.02G label: N/A uuid: N/A
           ID-13: /dev/ram12 size: 0.02G label: N/A uuid: N/A
           ID-14: /dev/ram13 size: 0.02G label: N/A uuid: N/A
           ID-15: /dev/ram14 size: 0.02G label: N/A uuid: N/A
           ID-16: /dev/ram15 size: 0.02G label: N/A uuid: N/A
Sensors:   System Temperatures: cpu: 49.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 102 Uptime: 13 min Memory: 167.5/997.2MB
           Init: SysVinit v: 2.88 runlevel: 5 default: 5 Gcc sys: 4.9.2
           Client: Shell (bash 4.3.301 running in roxterm) inxi: 2.2.31
Last edited by Reljoy on 12 Apr 2016, 04:16, edited 1 time in total.
Posts: 2,238
dolphin_oracle
Joined: 16 Dec 2007
#2
welcome to antiX

and to the land of no-desktop-environment. window managers like icewm (the antiX default) don't use xdg-autostart by default. You need to put your startup command in a sessions startup file.

open control center

click on session then"global-desktop-session settings" (I forget exact title). type your startup command into the text editor tab labeled"startup". I believe there are existing entries already so you can see the format. For iceweasel

Code: Select all

iceweasel &

the & is important. it tells the system to split the new app away from the process that started it. That way things don't hang waiting for other apps to finish up.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#3
You might want to add a sleep delay

sleep3 && iceweasel &
Posts: 3
Reljoy
Joined: 10 Apr 2016
#4
Thanks very much guys.
I tried lots of different delays but it didn't work.

Code: Select all

sleep15 && iceweasel &
(I'm assuming that sleep15 means 15 seconds).

So I tried it without a delay and it did work!

Code: Select all

iceweasel &
Very pleasing.
As always, I find forums give good advice and help.
Posts: 3
Reljoy
Joined: 10 Apr 2016
#5
Actually I think it should be sleep 3 with a space from a quick google.