Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

features missing in desktop env when launched from crontab

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
DoubleHP
Posts: 72
Joined: 2016-10-09 08:55
Has thanked: 1 time

features missing in desktop env when launched from crontab

#1 Post by DoubleHP »

Hello.

When starting E17 from user console, it works fine.

When I start it from crontab

Code: Select all

@reboot        dhp     /srv/local/bin/startx.user.sh
then, most "system" menu is in light grey (disabled): suspend / hybernate / reboot / poweroff.

Lock and logout remain of course accessible.

Why are these features disable with this launch method, and how can I enable them ? missing group ? missing env var ? missing PATH ? process starting before some required service is available ?

DoubleHP
Posts: 72
Joined: 2016-10-09 08:55
Has thanked: 1 time

Re: features missing in desktop env when launched from crontab

#2 Post by DoubleHP »

Different issue, probably related to very similar root cause: same user, same host, logged in via two different methods, end up with different environment, and even different mount points:

Code: Select all

$ tty
/dev/pts/10
$ env | grep DBUS
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-naLw4szB85,guid=2b3e78d7e243192c38ac24b362652591
$ df -h | tail -n 4
df: /run/user/1000/doc: Operation not permitted
/dev/sdc1                   15G  5.8G  9.1G  40% /mnt/MP3_camion
tmpfs                      1.6G   16K  1.6G   1% /run/user/1000
GoogleDriveBenoitDemaine:   30G   19G   12G  63% /home/dhp/GoogleDriveBenoitDemaine
/dev/sda1                   69G   14G   56G  20% /mnt/Ventoy

Code: Select all

$ tty
/dev/pts/11
$ env | grep DBUS
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
$ df -h | tail -n 4
/dev/sdc1                   15G  5.8G  9.1G  40% /mnt/MP3_camion
/dev/sda1                   69G   14G   56G  20% /mnt/Ventoy
/dev/sdb1                  115G   90M  115G   1% /media/DHP_128G_-_sdb1
/dev/sdd1                   58G   88M   58G   1% /media/DHP_pat_64G_-_sdd1
tty10 sees GoogleDrive but not /media, while tty11 sees /media but not GoogleDrive.

GoogleDrive is mounted using rclone at boot; /media were mounted on usb stick insertion hours after boot by some (root) scripts.

Of course, I want my user to have access to everything from all consoles; and I see a common point with the previous issue: the way I log in alters the ressources I al allowed to access.

Post Reply