You are not logged in.

#1 2016-07-31 21:10:03

0-day
Member
Registered: 2015-10-04
Posts: 154

applications startup

how do I add applications startup in bunsenlabs? for all sessions, not only for openbox.

Offline

#2 2016-07-31 21:31:16

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: applications startup

Well the most heavy handed option would be to create a systemd service unit for the application. So when the userspace start, the systemd init program can call your service unit which would load whatever application you want. You just have to specify if it relies on anything else to be loaded before hand etc....

The other option is to create a listing in the /etc/xdg/autostart   entry I think.  putting it in /etc/xdg/openbox/autostart would still restrict it to openbox, if you were trying to run another D.E.    So my thinking is something in /etc/xdg/autostart/  would allow you to run something at boot, agnostic of the D.E  you choose.

*As always, someone please fact check me on this!*


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

#3 2016-07-31 21:37:01

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: applications startup

@OP: if the application in question has a .desktop file in /usr/share/applications then you can copy that file to ~/.config/autostart

If not, you can make one yourself, as per https://specifications.freedesktop.org/ … atest.html

I use this one for launching rxvt-unicode in daemon mode:

# ~/.config/autostart/urxvtd.desktop
[Desktop Entry]
Exec=/usr/bin/urxvtd -q -f -o
Icon=system-run
Path=
Terminal=false
Type=Application

Offline

#4 2016-07-31 21:43:59

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: applications startup

HoaS is there any advantage to doing it that way, over creating a systemd service unit file to specifically call the application?


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

#5 2016-07-31 21:46:03

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: applications startup

^ My method actually works.

neutral

Offline

#6 2016-07-31 21:56:22

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,143
Website

Re: applications startup

Copy or create *.desktop files in ~./config/autostart or, if you're using Openbox, add entries to ~/.config/openbox/autostart

+1000

Why not per user? You really want a media player or something starting before your desktop?


I don't care what you do at home. Would you care to explain?

Offline

#7 2016-07-31 21:59:39

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: applications startup

Head_on_a_Stick wrote:

^ My method actually works.

neutral

lol  lol  lol



@OP: Very true though 0-day, I think it would make a difference knowing what application you're wishing to auto start. That would determine which and where you place the start up call.

Last edited by Horizon_Brave (2016-07-31 22:01:13)


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

Board footer

Powered by FluxBB