LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-04-2017, 10:51 AM   #1
spiri13
Member
 
Registered: Jun 2016
Posts: 57

Rep: Reputation: Disabled
[crontab]open GUI


Hi,

I'm using arch linux and I want to spawn a GUI via crontab.

I read everywhere i should set the DISPLAY env variable but it doesn't works.

How to open a GUI by a cron job?

Thanks in advance.

Last edited by spiri13; 10-08-2017 at 10:10 AM.
 
Old 10-04-2017, 11:00 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,413
Blog Entries: 10

Rep: Reputation: 5227Reputation: 5227Reputation: 5227Reputation: 5227Reputation: 5227Reputation: 5227Reputation: 5227Reputation: 5227Reputation: 5227Reputation: 5227Reputation: 5227
do you want to start it periodically, or why cron?
anyhow, on archlinux, shouldn't you be doing th is with systemd? on my system, cron (or any derivate) isn't even installed...
that said, i'd seen a thread on bbs.archlinux.org, discussing a way to start Xorg as systemd service.

but what are you actually trying to achieve?
 
Old 10-08-2017, 08:32 AM   #3
spiri13
Member
 
Registered: Jun 2016
Posts: 57

Original Poster
Rep: Reputation: Disabled
Hi,

I wanted to do a self-made script for id3lock, because you can't specify a timeout anymore for this program.

id3lock needs the DISPLAY environment, but it does not seem to be only that variable.

I don't want to spawn id3lock in a new tty, it should be executed in the current xorg session.
 
Old 10-08-2017, 09:32 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,413
Blog Entries: 10

Rep: Reputation: 5227Reputation: 5227Reputation: 5227Reputation: 5227Reputation: 5227Reputation: 5227Reputation: 5227Reputation: 5227Reputation: 5227Reputation: 5227Reputation: 5227
Quote:
Originally Posted by spiri13 View Post
I wanted to do a self-made script for id3lock, because you can't specify a timeout anymore for this program.
there's no such program in the archlinux repositories.

you really have to show us what you're doing, what you tried and where and how and when exactly it failed etc etc
 
Old 10-08-2017, 10:10 AM   #5
spiri13
Member
 
Registered: Jun 2016
Posts: 57

Original Poster
Rep: Reputation: Disabled
Firstly there were some perl packages which were gone and pacman couldn't figure out the dependencies anymore, because no packages were found anymore for xscreensaver.

Then I tried a more light version screensaver program because i won't use gdm and i liked xscreensaver and i don't know a good fork or something else of it.

Now I compiled xscreensaver from source and it worked.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] can't open crontab on Solaris sam_nyc Linux - Newbie 1 04-10-2012 05:10 PM
How to open crontab in SunOS naresh1302 Solaris / OpenSolaris 3 02-08-2011 08:39 AM
Alternative to crontab -e, time error (no gui) frenchn00b Linux - General 3 02-18-2008 12:21 PM
using crontab how to show on tty1 or from GUI "xterm". hocheetiong Linux - Newbie 4 12-16-2007 05:44 PM
crontab - can't open display cch2cch Linux - General 1 08-09-2006 11:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:13 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