Xfce Forum

Sub domains
 

You are not logged in.

#1 2015-12-27 10:43:35

scejja1
Member
Registered: 2015-12-27
Posts: 2

[Solved] Create autostart desktop file in 'on the fly' xfce session

I'm trying to make a live usb which runs an interactive shell script when booting. I'm using Ubuntu Customization Kit (uck), xubuntu-14.04.3-desktop-i386.iso and syslinux.

In this thread I posted this question, but no answer yet.

http://askubuntu.com/questions/705677/i … ive-cd-usb

Trying to solve this from xfce, I wonder if is possible to create a desktop file in /home/xubuntu/.config/autostart/ folder before desktop files inside it are executed in xfce session. Maybe if I create the desktop file just after live xfce session has been created. But I do not know in which file I should do it (~/.bashr, /etc/rc.local, ...)


Any help please? Thanks in advance.

Offline

#2 2015-12-27 20:27:35

sixsixfive
Member
From: behind you
Registered: 2012-04-08
Posts: 579
Website

Re: [Solved] Create autostart desktop file in 'on the fly' xfce session

even if xfce4-terminal claims to be xterm compatible it isnt like all other libvte based terms! so you have to lauch a shell first eg xfce4-terminal -e /bin/sh $yourscript

but adding stuff to autostart won't probably work since afaik autostart executes just those *.desktop files and will not wait so you better add it as a boot script eg in init5 or if user specific add/change the login commad of your display-manager or by adding it to the top of the xfce4-session script eg: sh $yourscript &&

Offline

#3 2016-01-07 12:39:24

scejja1
Member
Registered: 2015-12-27
Posts: 2

Re: [Solved] Create autostart desktop file in 'on the fly' xfce session

Great!, if I create the file before session is started, it works.

http://askubuntu.com/questions/705677/i … ive-cd-usb

Thanks a lot

Offline

Board footer

Powered by FluxBB