iberianpig / fusuma

Multitouch gestures with libinput driver on Linux
MIT License
3.67k stars 149 forks source link

How to autostart fusuma in the background on login? #46

Closed Rodancoci closed 6 years ago

Rodancoci commented 7 years ago

I'm running Unity on Ubuntu 17.04.

So far I've been manually running $ fusuma & disown And then closing the terminal, which works well enough.

However, I wish I could get fusuma to run by itself whenever I login. I've tried adding the command 'fusuma' to Ubuntu's "Startup Applications" without success. Upon rebooting and logging in neither fusuma nor ruby are running.

Any suggestions?

iberianpig commented 7 years ago

@Rodancoci

You can find correct path with below command.

$ which fusuma

then please register the path you found and try restart.

Rodancoci commented 7 years ago

I tried setting the full path output by $ which fusuma As the command on the startup item but I got the same result.

Launching the full path manually from the terminal after logging in works, however.

iberianpig commented 7 years ago

Please record log and check it on your environment. path/to/your/fusuma -v > /tmp/fusuma.log restart your machine, then cat /tmp/fsuma.log

Rodancoci commented 7 years ago

Here are the contents of the log: https://pastebin.com/MNcQ7Mgp

Rodancoci commented 7 years ago

I managed to get it working how I wanted. What finally worked for me was adding the following line at the end of ~/.profile: /home/usr/.rvm/gems/ruby-2.4.0/wrappers/fusuma & disown

kontrollanten commented 7 years ago

Thanks @Rodancoci for the help. I got it working with the following command. printf "$(which fusuma) & disown \n" >> .profile

But .profile doesn't feel like the natural place for this command, even if it works. I'm pretty new into Linux, but wouldn't it be better if the application created a script in init.d? Then it would be more of a plug n play application.

iberianpig commented 7 years ago

@kontrollanten Oh, that's a nice idea. Could you make the pull-request?

kontrollanten commented 7 years ago

I'm new into both ruby and Linux. But I'll give it some tries.

rmasclef commented 6 years ago

@Rodancoci in a more user friendly way, you can use startup application preferences to start any software you want at user login.

For example, I added firefox, slack and fusuma in order to start those three apps when I login.

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

ouzc12358 commented 6 years ago

@rmasclef thanks! simple and useful ! it takes my 2 days

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

JafarBadour commented 4 years ago

I am using ubuntu 19 When I add fusuma to startup applications It doesnt work. However when I run

sudo fusuma &> dev/null

It works perfectly.

I tried this one image

and this one: image

Neither works, i think because it doesnt accept sudo but I dont know how to fix!

iberianpig commented 4 years ago

Please try adding $USER to input group and configure autostart without sudo.

JafarBadour commented 4 years ago

I am not sure how is that possible? how can I add $USER ?

iberianpig commented 4 years ago

Please read README.

https://github.com/iberianpig/fusuma/blob/master/README.md#autostart-gnome-session-properties

JafarBadour commented 4 years ago

Yep this worked for me, thanks!!

Autostart (gnome-session-properties)

Check the path where you installed fusuma with $ which fusuma Open $ gnome-session-properties Add Fusuma and enter the location where the above path was checked in the command input field Add the -d option at the end of the command input field

Screenshot of the configuration on my device

image

athulkrishna2015 commented 3 years ago

Yep this worked for me, thanks!!

Autostart (gnome-session-properties)

Check the path where you installed fusuma with $ which fusuma Open $ gnome-session-properties Add Fusuma and enter the location where the above path was checked in the command input field Add the -d option at the end of the command input field

Screenshot of the configuration on my device

image

what is the meaning of -d ? also does it work on xfce4?

JafarBadour commented 3 years ago

I think -d is for detached mode @athulkrishna2015