LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-08-2015, 09:26 PM   #1
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Rep: Reputation: 34
autostart files are ignored


I'm running Gnome on Arch.

This config was supposed to start gnome-screeensaver and redshift when I logged in, but that doesn't happen. I however see them listed in Startup Applications in the GNOME Tweak Tool.

Code:
$ls .config/autostart                                           ~
gnome-screensaver-autostart.desktop  redshift-gtk.desktop
Can you please let me know where I'm going wrong?

Last edited by gregorian; 05-08-2015 at 10:00 PM.
 
Old 05-09-2015, 05:44 AM   #2
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Post the content of the .desktop files.

To autostart an rxvt-unicode daemon in GNOME (3.14.1), I use this file:
Code:
# /usr/share/gnome/autostart/rxvt-unicode-daemon
[Desktop Entry]
Type=Application
Name=rxvt-unicode-daemon
Exec=urxvtd -q -f -o
I don't know if things have changed for 3.16 as I only use GNOME in my Debian system but you could try this method instead.

Last edited by Head_on_a_Stick; 05-09-2015 at 05:56 AM. Reason: corrected error in my autostart file
 
1 members found this post helpful.
Old 05-09-2015, 08:04 PM   #3
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Original Poster
Rep: Reputation: 34
I copied it from a location on the system. I even added X-GNOME-Autostart-enabled=true but nothing happened.
Code:
$cat .config/autostart/*
[Desktop Entry]
Type=Application
Name=Screensaver
Name[af]=Sluimerskerm
Name[an]=Salvapantallas
Name[ar]= 
Name[as]=
Name[ast]=Curiapantalles
Name[be]= 
Name[be@latin]=bierahalnik ekranu
Name[bg]=  
Name[bn]=-
Name[bn_IN]=-
Name[br]=Damanter skramm
Name[ca]=Estalvi de pantalla
Name[ca@valencia]=Estalvi de pantalla
Name[crh]=Ekran qoruycs
Name[cs]=eti obrazovky
Name[cy]=Arbedwr sgrin
Name[da]=Pauseskrm
Name[de]=Bildschirmschoner
Name[dz]=
Name[el]= 
Name[en@shaw]=
Name[en_CA]=Screensaver
Name[en_GB]=Screensaver
Name[eo]=Ekrankurteno
Name[es]=Salvapantallas
Name[et]=Ekraanisstja
Name[eu]=Pantaila-babeslea
Name[fa]= 
Name[fi]=Nytnsstj
Name[fr]=conomiseur d'cran
Name[ga]=Sprla Scilein
Name[gl]=Protector de pantalla
Name[gu]=
Name[he]= 
Name[hi]=
Name[hr]=uvar zaslona
Name[hu]=Kpernyvd
Name[id]=Pengaman Layar
Name[is]=Skjhvla
Name[it]=Salvaschermo
Name[ja]=
Name[ka]=
Name[km]=
Name[kn]=
Name[ko]= 
Name[ku]=Dmenderparz
Name[lt]=Ekrano usklanda
Name[lv]=Ekrnsaudztjs
Name[mai]=
Name[mg]=Sary mitsitsy
Name[mk]=  
Name[ml]=
Name[mn]= 
Name[mr]=
Name[ms]=Penyelamat skrin
Name[my]=
Name[nb]=Skjermsparer
Name[nds]=Billschirmschoner
Name[ne]=
Name[nl]=Schermbeveiliging
Name[nn]=Skjermsparar
Name[oc]=Estalviaire d'ecran
Name[or]= 
Name[pa]=-
Name[pl]=Wygaszacz ekranu
Name[ps]= 
Name[pt]=Proteco de Ecr
Name[pt_BR]=Proteo de tela
Name[ro]=Protector de ecran
Name[ru]= 
Name[si]=
Name[sk]=etri obrazovky
Name[sl]=Ohranjevalnik zaslona
Name[sq]=Ruajts ekrani
Name[sr]= 
Name[sr@latin]=uvar ekrana
Name[sv]=Skrmslckare
Name[ta]= 
Name[te]=
Name[th]=
Name[tr]=Ekran koruyucu
Name[ug]= 
Name[uk]= 
Name[vi]=B bo v mn hnh
Name[xh]=Umgcinisikrini
Name[zh_CN]=
Name[zh_HK]=
Name[zh_TW]=
Comment=Launch screensaver and locker program
Comment[af]=Lanseer sluimerskerm en sluitprogram
Comment[an]=Lanzar o salvapantallas y o programa de bloqueyo
Comment[ar]=   
Comment[as]=     
Comment[be]=    
Comment[bg]=      
Comment[bn]=-     
Comment[bn_IN]=-     
Comment[ca]=Executa l'estalvi de pantalla i el programa de blocatge
Comment[ca@valencia]=Executa l'estalvi de pantalla i el programa de blocatge
Comment[crh]=Ekran qoruyc ve kilitleyici programn frlat
Comment[cs]=Spust eti obrazovky a program uzamknut
Comment[da]=Start pauseskrm og skrmlsningsprogram
Comment[de]=Bildschirmschoner und Bildschirmsperrung starten
Comment[el]=        
Comment[en_GB]=Launch screensaver and locker program
Comment[eo]=Ruli ekrankurtenon kaj losprogramaron
Comment[es]=Lanzar el salvapantallas y el programa de bloqueo
Comment[et]=Ekraanisstmis- ja lukustustamisprogrammi kivitamine
Comment[eu]=Abiarazi pantaila-babeslea edo programa blokeatzailea
Comment[fa]=      
Comment[fi]=Kynnist nytnsstj ja lukitusohjelma
Comment[fr]=Lancer l'conomiseur d'cran et le programme de verrouillage
Comment[gl]=Iniciar o protector de pantallas e o programa de bloqueo
Comment[gu]=      
Comment[he]=     
Comment[hi]=     
Comment[hu]=Kpernyvd s -zrol program indtsa
Comment[id]=Menjalankan pengaman layar serta mengunci program
Comment[it]=Lancia il programma per salvaschermo e per blocco schermo
Comment[ja]=
Comment[km]= 
Comment[ko]=     
Comment[lt]=Paleisti ekrano uskland ir urakt
Comment[lv]=Palaist ekrna saudztju un noslganas programmu
Comment[ml]=    
Comment[mr]=     
Comment[ms]=Lancar penyelamatskrin dan program pengunci
Comment[nb]=Start skjermsparer og lsprogram
Comment[nl]=Schermbeveiliging en -vergrendeling opstarten
Comment[or]=      
Comment[pa]=     
Comment[pl]=Uruchamia wygaszacz ekranu i program blokujcy
Comment[pt]=Iniciar o protector de ecr e a aplicao de trancar
Comment[pt_BR]=Executa o protetor de tela e bloqueia programa
Comment[ro]=Lanseaz programul de blocare i protejare a ecranului
Comment[ru]=     
Comment[sl]=Zaeni ohranjevalnik zaslona in program za zaklepanje
Comment[sr]=       
Comment[sr@latin]=Pokree uvara ekrana i program za zakljuavanje ekrana
Comment[sv]=Starta program fr skrmslckare och -lsning
Comment[ta]=    
Comment[te]=    
Comment[th]=
Comment[tr]=Ekran koruyucu ve kilitleyici program balat
Comment[ug]=     
Comment[uk]=     
Comment[vi]=Chy chng trnh bo v v kha mn hnh
Comment[xh]=Ukhupha umgcini-skrini kunye nenkqubo yotshixa
Comment[zh_CN]=
Comment[zh_HK]=
Comment[zh_TW]=
Icon=preferences-desktop-screensaver
Exec=gnome-screensaver
OnlyShowIn=GNOME-Flashback;
NoDisplay=true
X-GNOME-Autostart-Phase=Application
X-GNOME-Autostart-Notify=true
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=gnome-screensaver
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-Version=3.6.1
[Desktop Entry]
Terminal=false
Categories=Utility;
Comment=Color temperature adjustment tool
Version=1.0
X-GNOME-Autostart-enabled=false
Type=Application
Hidden=true
GenericName=Color temperature adjustment
Icon=redshift
StartupNotify=true
Name=Redshift
Exec=redshift-gtk

Last edited by gregorian; 05-09-2015 at 08:15 PM.
 
Old 05-10-2015, 09:29 AM   #4
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Quote:
Originally Posted by gregorian View Post
I even added X-GNOME-Autostart-enabled=true but nothing happened.
Code:
[...]
[Desktop Entry]
Terminal=false
Categories=Utility;
Comment=Color temperature adjustment tool
Version=1.0
*** X-GNOME-Autostart-enabled=false ***
Type=Application
Hidden=true
GenericName=Color temperature adjustment
Icon=redshift
StartupNotify=true
Name=Redshift
Exec=redshift-gtk
I can only see "X-GNOME-Autostart-Phase=Application" & "X-GNOME-Autostart-Notify=true" in the screensaver file and the redshift file has this disabled (as you can see).

Did you try my method?

Have you tried just adding /usr/bin/gnome-screenaver & /usr/bin/redshift-gtk to the "Autostart" section in GNOME-tweak-tool?
 
1 members found this post helpful.
Old 05-10-2015, 12:54 PM   #5
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Original Poster
Rep: Reputation: 34
I had enabled those options in the file before I reverted them back to show you my desktop files.

Your method of adding the following files to:

/usr/share/gnome/autostart works!

Code:
[Desktop Entry]
Type=Application
Name=Gnome Screensaver
Exec=/usr/bin/gnome-screensaver

[Desktop Entry]
Type=Application
Name=Redshift
Exec=/usr/bin/redshift-gtk
I'm not sure what's up with the existing desktop files and the ~/.config/autostart but this works for me, since it's my machine. Thank you so much!

Last edited by gregorian; 05-10-2015 at 01:00 PM.
 
Old 05-10-2015, 01:18 PM   #6
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Excellent!

You're welcome
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Rebuilding autostart files and /or copying them from thumb drive cigtoxdoc Linux - Newbie 0 03-06-2013 04:45 AM
Slackware 12.1 XKbOptions grp:alt_shift_toggle Mig21 Slackware 5 05-28-2008 05:36 PM
KDE disables my xorg.conf's "XkbOptions" kornerr Linux - General 2 06-29-2005 11:38 AM
meaning of choices for XKbOptions plusminus Linux - General 2 07-12-2004 01:38 PM
SUSE 9.1: named.conf works, but including separate conf files doesn't??? registering Linux - Distributions 0 06-09-2004 04:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration