Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Matter cannot be created or destroyed, nor can it be returned without a receipt.


computers / alt.os.linux.ubuntu / desktop entry appear with ~/.local/share/applications binding

SubjectAuthor
* desktop entry appear with ~/.local/share/applications bindingInThech
+* Re: desktop entry appear with ~/.local/share/applications bindingInThech
|`* Re: desktop entry appear with ~/.local/share/applications bindingJonathan N. Little
| `* Re: desktop entry appear with ~/.local/share/applications bindingInThech
|  `* Re: desktop entry appear with ~/.local/share/applications bindingJonathan N. Little
|   `- Re: desktop entry appear with ~/.local/share/applications bindingInThech
`- Crosspost in alt.os.linuxMarco Moock

1
desktop entry appear with ~/.local/share/applications binding

<tcld6e$mgt$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2407&group=alt.os.linux.ubuntu#2407

  copy link   Newsgroups: alt.os.linux.ubuntu
Path: i2pn2.org!i2pn.org!aioe.org!YtW4/l4xQqpCDmLd+ke3jA.user.46.165.242.75.POSTED!not-for-mail
From: spam@a.b (InThech)
Newsgroups: alt.os.linux.ubuntu
Subject: desktop entry appear with ~/.local/share/applications binding
Date: Sat, 6 Aug 2022 11:44:46 +0200
Organization: Aioe.org NNTP Server
Message-ID: <tcld6e$mgt$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="23069"; posting-host="YtW4/l4xQqpCDmLd+ke3jA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
Content-Language: it-IT
X-Notice: Filtered by postfilter v. 0.9.2
 by: InThech - Sat, 6 Aug 2022 09:44 UTC

~$ cat .local/share/applications/test.desktop
[Desktop Entry]
Name=test123
Exec=echo TEST
Type=Application

https://pasteboard.co/fuNEb9CLBHtO.png
OK, it appear.

~$ mv -i .local/share/applications/test.desktop /var/tmp/applications/
~$ sudo mount --bind /var/tmp/applications .local/share/applications

https://pasteboard.co/sIc4BYAEH64I.png
It does not appear.

Why?

Re: desktop entry appear with ~/.local/share/applications binding

<tclj3h$p38$2@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2408&group=alt.os.linux.ubuntu#2408

  copy link   Newsgroups: alt.os.linux.ubuntu
Path: i2pn2.org!i2pn.org!aioe.org!YtW4/l4xQqpCDmLd+ke3jA.user.46.165.242.75.POSTED!not-for-mail
From: spam@a.b (InThech)
Newsgroups: alt.os.linux.ubuntu
Subject: Re: desktop entry appear with ~/.local/share/applications binding
Date: Sat, 6 Aug 2022 13:25:37 +0200
Organization: Aioe.org NNTP Server
Message-ID: <tclj3h$p38$2@gioia.aioe.org>
References: <tcld6e$mgt$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="25704"; posting-host="YtW4/l4xQqpCDmLd+ke3jA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: it-IT
 by: InThech - Sat, 6 Aug 2022 11:25 UTC

Il 06/08/22 11:44, InThech ha scritto:
> ~$ cat .local/share/applications/test.desktop
> [Desktop Entry]
> Name=test123
> Exec=echo TEST
> Type=Application
>
> https://pasteboard.co/fuNEb9CLBHtO.png
> OK, it appear.
>
> ~$ mv -i .local/share/applications/test.desktop /var/tmp/applications/
> ~$ sudo mount --bind /var/tmp/applications .local/share/applications
>
> https://pasteboard.co/sIc4BYAEH64I.png
> It does not appear.
>
> Why?

SUBJECT CORRECTION:
Replace *appear* with *not appear*

Crosspost in alt.os.linux

<20220806164521.6e5ee1af@ryz>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2409&group=alt.os.linux.ubuntu#2409

  copy link   Newsgroups: alt.os.linux.ubuntu
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: mo01@posteo.de (Marco Moock)
Newsgroups: alt.os.linux.ubuntu
Subject: Crosspost in alt.os.linux
Date: Sat, 6 Aug 2022 16:45:21 +0200
Organization: A noiseless patient Spider
Lines: 2
Message-ID: <20220806164521.6e5ee1af@ryz>
References: <tcld6e$mgt$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader01.eternal-september.org; posting-host="a1871f1fc1859e5401e315552bc1b4db";
logging-data="4108669"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Y4QNLAiQ/F8gLsmMMPmI6"
Cancel-Lock: sha1:4Ip5NzYdWbgiL+iYMW2Qjh2mIHg=
 by: Marco Moock - Sat, 6 Aug 2022 14:45 UTC

Please only post to one group to avoid confusion.

Re: desktop entry appear with ~/.local/share/applications binding

<tcm1s1$3ud3l$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2410&group=alt.os.linux.ubuntu#2410

  copy link   Newsgroups: alt.os.linux.ubuntu
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: lws4art@gmail.com (Jonathan N. Little)
Newsgroups: alt.os.linux.ubuntu
Subject: Re: desktop entry appear with ~/.local/share/applications binding
Date: Sat, 6 Aug 2022 11:37:08 -0400
Organization: LITTLE WORKS STUDIO
Lines: 61
Message-ID: <tcm1s1$3ud3l$1@dont-email.me>
References: <tcld6e$mgt$1@gioia.aioe.org> <tclj3h$p38$2@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 6 Aug 2022 15:37:37 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="08faf8cc13440be284d3f526600729c2";
logging-data="4142197"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19PjEpGMF3DcpHeazOHvHEXIL+mBBn88qE="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101
Firefox/68.0 SeaMonkey/2.53.13
Cancel-Lock: sha1:ge4DxGvXDK0ZOWv1Ln9agxQST1g=
X-Face: o[H8T0h*NGH`K`P)s+4PmYlcy|GNl`~+L6Fi.m:%15m[c%{C7V-ump|WiCYPkQ+hFJhq;XW5^1Rg_El'"fE$~AcYW$Pq\yeh9K_-dJqlQ5\y2\;[yw5DYCtOtsf_.TUy}0U\oL^>[3Y#{AP2^o'bG`bwj`]]UNpCxY\(~xK9b+uZKxrb*4-rkD+
In-Reply-To: <tclj3h$p38$2@gioia.aioe.org>
X-Dan: Yes Dan this is a Winbox
 by: Jonathan N. Little - Sat, 6 Aug 2022 15:37 UTC

InThech wrote:
> Il 06/08/22 11:44, InThech ha scritto:
>> ~$ cat .local/share/applications/test.desktop
>> [Desktop Entry]
>> Name=test123
>> Exec=echo TEST
>> Type=Application
>>
>> https://pasteboard.co/fuNEb9CLBHtO.png
>> OK, it appear.
>>
>> ~$ mv -i .local/share/applications/test.desktop /var/tmp/applications/
>> ~$ sudo mount --bind /var/tmp/applications .local/share/applications

Don't do this. Install custom app shortcuts in your own profile, not at
the system level because (especially if this is a modified version of a
system app) would be replaced after app update.

>>
>> https://pasteboard.co/sIc4BYAEH64I.png
>> It does not appear.
>>
>> Why?
>
> SUBJECT CORRECTION:
> Replace *appear* with *not appear*

The correct way to do this is with a command, that "registers" the
..desktop shortcut. Also you can use commands to validate and fix any
errors possibly in your custom .desktop file.

You were correct the .desktop file does belongs in
~/.local/share/applications. Here is a better way to accomplish this:

1) Compose .desktop file temporally in an easily accessible directory,
not directly in the hidden ~/.local/share/applications

ex. ~/MyCustomizations/test.desktop

2) Validate its format to make sure you haven't made any boo-boos with:

desktop-file-validate ~/MyCustomizations/test.desktop

3) If is passes then install it into ~/.local/share/applications/ with:
(note this is a one line command, ignore the wrap)

desktop-file-install --dir=~/.local/share/applications
~/MyCustomizations/test.desktop

4) Now you will see the "app" in your app search. Also you now have a
handy copy in ~/MyCustomizations/ for anytime you want to make
modifications.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

Re: desktop entry appear with ~/.local/share/applications binding

<tcqrn2$rp5$2@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2423&group=alt.os.linux.ubuntu#2423

  copy link   Newsgroups: alt.os.linux.ubuntu
Path: i2pn2.org!i2pn.org!aioe.org!3qj1OBnzHSAaSSAZj8meeg.user.46.165.242.75.POSTED!not-for-mail
From: spam@a.b (InThech)
Newsgroups: alt.os.linux.ubuntu
Subject: Re: desktop entry appear with ~/.local/share/applications binding
Date: Mon, 8 Aug 2022 13:23:14 +0200
Organization: Aioe.org NNTP Server
Message-ID: <tcqrn2$rp5$2@gioia.aioe.org>
References: <tcld6e$mgt$1@gioia.aioe.org> <tclj3h$p38$2@gioia.aioe.org>
<tcm1s1$3ud3l$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="28453"; posting-host="3qj1OBnzHSAaSSAZj8meeg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
Content-Language: it-IT
X-Notice: Filtered by postfilter v. 0.9.2
 by: InThech - Mon, 8 Aug 2022 11:23 UTC

Il 06/08/22 17:37, Jonathan N. Little ha scritto:
> desktop-file-install --dir=~/.local/share/applications
> ~/MyCustomizations/test.desktop

$ desktop-file-install --dir=~/.local/share/applications
tor-translate.desktop
$ ls ~/.local/share/applications/tor-translate.desktop
ls: impossibile accedere a
'/home/rino/.local/share/applications/tor-translate.desktop': File o
directory non esistente

Re: desktop entry appear with ~/.local/share/applications binding

<tcrett$vtfl$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2424&group=alt.os.linux.ubuntu#2424

  copy link   Newsgroups: alt.os.linux.ubuntu
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: lws4art@gmail.com (Jonathan N. Little)
Newsgroups: alt.os.linux.ubuntu
Subject: Re: desktop entry appear with ~/.local/share/applications binding
Date: Mon, 8 Aug 2022 12:50:40 -0400
Organization: LITTLE WORKS STUDIO
Lines: 75
Message-ID: <tcrett$vtfl$1@dont-email.me>
References: <tcld6e$mgt$1@gioia.aioe.org> <tclj3h$p38$2@gioia.aioe.org>
<tcm1s1$3ud3l$1@dont-email.me> <tcqrn2$rp5$2@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 8 Aug 2022 16:51:10 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="e9fa4e92ae147c16ab7ad5bfd84e4c88";
logging-data="1046005"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19L1Rj3M7S3X+u6Zf37YWIVN8Vgpv7HPvA="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101
Firefox/68.0 SeaMonkey/2.53.13
Cancel-Lock: sha1:JQ6wUW/Uj8rLanf9HPByy9+NylQ=
X-Dan: Yes Dan this is a Winbox
X-Face: o[H8T0h*NGH`K`P)s+4PmYlcy|GNl`~+L6Fi.m:%15m[c%{C7V-ump|WiCYPkQ+hFJhq;XW5^1Rg_El'"fE$~AcYW$Pq\yeh9K_-dJqlQ5\y2\;[yw5DYCtOtsf_.TUy}0U\oL^>[3Y#{AP2^o'bG`bwj`]]UNpCxY\(~xK9b+uZKxrb*4-rkD+
In-Reply-To: <tcqrn2$rp5$2@gioia.aioe.org>
 by: Jonathan N. Little - Mon, 8 Aug 2022 16:50 UTC

InThech wrote:
> Il 06/08/22 17:37, Jonathan N. Little ha scritto:
>> desktop-file-install --dir=~/.local/share/applications
>> ~/MyCustomizations/test.desktop
>
> $ desktop-file-install --dir=~/.local/share/applications
> tor-translate.desktop
> $ ls ~/.local/share/applications/tor-translate.desktop
> ls: impossibile accedere a
> '/home/rino/.local/share/applications/tor-translate.desktop': File o
> directory non esistente
>

Sorry I think you have to specify either absolute path:

/home/rino/.local/share/applications

or:

relative to PWD but do not use '~/'

Okay just confirm it:

~/$ mkdir demo
~/$ cd demo
~/demo$ nano demo.desktop
~/demo$ cat demo.desktop

[Desktop Entry]
Name=Demo
Exec=zenity --info --text="Hello World!"
Type=Application

# Okay now I will validate it:
~/demo$ desktop-file-validate demo.desktop

# It returns nothing so all is well. You can add something like
BadParam=bogus to the file and desktop-file-validate will show you your
error.

~/demo$ pwd
/home/jonathan/demo
~/demo$ ls
'~' demo.desktop

# Just showing you where I am in this subdirectory with the demo.desktop
file, now let's try and install it using '~/':

~/demo$ desktop-file-install --dir=~/.local/share/applications demo.desktop

~/demo$ ls ~/.local/share/applications/demo.desktop
ls: cannot access
'/home/jonathan/.local/share/applications/demo.desktop': No such file or
directory

# Confirms that this does not work, but if I use a relative path as so:

~/demo$ desktop-file-install --dir=../.local/share/applications demo.desktop

~/demo$ ls ~/.local/share/applications/demo.desktop
/home/jonathan/.local/share/applications/demo.desktop

# There we go, the .desktop file is installed. Also I could of course
use the absolute path.

HTH

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

Re: desktop entry appear with ~/.local/share/applications binding

<tcta2s$bas$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2425&group=alt.os.linux.ubuntu#2425

  copy link   Newsgroups: alt.os.linux.ubuntu
Path: i2pn2.org!i2pn.org!aioe.org!3qj1OBnzHSAaSSAZj8meeg.user.46.165.242.75.POSTED!not-for-mail
From: spam@a.b (InThech)
Newsgroups: alt.os.linux.ubuntu
Subject: Re: desktop entry appear with ~/.local/share/applications binding
Date: Tue, 9 Aug 2022 11:40:44 +0200
Organization: Aioe.org NNTP Server
Message-ID: <tcta2s$bas$1@gioia.aioe.org>
References: <tcld6e$mgt$1@gioia.aioe.org> <tclj3h$p38$2@gioia.aioe.org>
<tcm1s1$3ud3l$1@dont-email.me> <tcqrn2$rp5$2@gioia.aioe.org>
<tcrett$vtfl$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="11612"; posting-host="3qj1OBnzHSAaSSAZj8meeg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: it-IT
 by: InThech - Tue, 9 Aug 2022 09:40 UTC

Il 08/08/22 18:50, Jonathan N. Little ha scritto:
> ...

thanks

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor