This is the contents of test.desktop

On Tuesday, January 3, 2017 at 11:57:46 AM UTC+1, BJ wrote:
>
> this works for me
>
> #!/usr/bin/env xdg-open
> [Desktop Entry]
> Version=1.0
> Terminal=false
> Type=Application
> Name=test
> Exec=/bin/bash -c "tiddlywiki main-wiki-server --server 8085 &  (sleep 1; 
> xdg-open http://127.0.0.1:8085)"
>
>
>
> On Tuesday, January 3, 2017 at 11:07:21 AM UTC+1, Riz wrote:
>>
>> BJ
>> ,
>> Well, we are getting closer I guess. When I used your command, the 
>> terminal opened, started the server, but after 1 sec it closed itself 
>> before moving on to the next command. I feel this is what has been 
>> happening all along. It is not that the server is not starting, instead, it 
>> is getting closed the moment it is pushed to the background. I checked if 
>> it was running in the background with fuser 8081/tcp. Nope, it is closed. 
>>
>> On 3 January 2017 at 15:19, BJ <[email protected]> wrote:
>>
>>> you may need a delay to let node start:
>>>
>>> tiddlywiki main-wiki-server --server 8081 &  (sleep 1; xdg-open 
>>> http://127.0.0.1:8081) 
>>>
>>>
>>> On Monday, January 2, 2017 at 3:06:47 PM UTC+1, Riz wrote:
>>>>
>>>> hese are the things I already tried.
>>>>
>>>> Creating a .desktop file with 
>>>> exec=tiddlywiki /path/to/my/wiki --server 8081 & xdg-open http://
>>>> 127.0.0.1:8081
>>>>
>>>> This quit without executing.
>>>>
>>>> Then I created a bash script with the same command and call it via the 
>>>> launcher, that closed out too. Finally I added $SHELL to the end of bash 
>>>> script. This one opens the firefox and navigates to the url, but no 
>>>> tiddlywiki. 
>>>>
>>>> *Launcher File contents*
>>>> [Desktop Entry]
>>>> Version=1.0
>>>> Type=Application
>>>> Terminal=true
>>>> Exec=bash path/to/my/wiki/serve.sh
>>>> Name=Something
>>>> Icon=Some Icon
>>>>
>>>>
>>>>
>>>>
>>>> *Bash File Contents*
>>>> #!/bin/bash
>>>>
>>>> tiddlywiki main-wiki-server --server 8081 & xdg-open http://
>>>> 127.0.0.1:8081
>>>> $SHELL
>>>>
>>>>
>>>>
>>>> I do have the necessary permissions. Both files are marked executable. 
>>>> The command works when given independently in a terminal.  
>>>>
>>> -- 
>>> You received this message because you are subscribed to a topic in the 
>>> Google Groups "TiddlyWiki" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/tiddlywiki/L-NJYWgaSgM/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at https://groups.google.com/group/tiddlywiki.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/tiddlywiki/af2f4da9-9631-45e7-89b1-0fc9491a0785%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/tiddlywiki/af2f4da9-9631-45e7-89b1-0fc9491a0785%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4f139b7a-395d-4c9d-8f8f-cbf1b91242b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to