D5775: Don't include the pid in the dbus path when on flatpak

2017-09-08 Thread Albert Astals Cid
aacid added a comment. So if i have two okular open, how do i access the second via dbus? REPOSITORY R271 KDBusAddons REVISION DETAIL https://phabricator.kde.org/D5775 To: apol, #frameworks, jgrulich, aacid Cc: dfaure, davidedmundson, aacid

D5775: Don't include the pid in the dbus path when on flatpak

2017-09-08 Thread Aleix Pol Gonzalez
apol marked 2 inline comments as done. REPOSITORY R271 KDBusAddons REVISION DETAIL https://phabricator.kde.org/D5775 To: apol, #frameworks, jgrulich, aacid Cc: dfaure, davidedmundson, aacid

D5775: Don't include the pid in the dbus path when on flatpak

2017-08-23 Thread David Faure
dfaure added inline comments. INLINE COMMENTS > kdbusservice.cpp:98 > +bool inSandbox = false; > +if (!qEnvironmentVariableIsEmpty("XDG_RUNTIME_DIR")) { > +const QByteArray runtimeDir = qgetenv("XDG_RUNTIME_DIR"); this if() seems useless (double lookup).

D5775: Don't include the pid in the dbus path when on flatpak

2017-05-24 Thread Aleix Pol Gonzalez
This revision was automatically updated to reflect the committed changes. Closed by commit R271:8b79a5374afc: Don't include the pid in the dbus path when on flatpak (authored by apol). REPOSITORY R271 KDBusAddons CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D5775?vs=14782=14825

D5775: Don't include the pid in the dbus path when on flatpak

2017-05-24 Thread Albert Astals Cid
aacid accepted this revision. This revision is now accepted and ready to land. REPOSITORY R271 KDBusAddons BRANCH arcpatch-D5775 REVISION DETAIL https://phabricator.kde.org/D5775 To: apol, #frameworks, jgrulich, aacid Cc: dfaure, davidedmundson, aacid

D5775: Don't include the pid in the dbus path when on flatpak

2017-05-23 Thread Aleix Pol Gonzalez
apol updated this revision to Diff 14782. apol added a comment. Keep the old reverse.domain-pid notation when not sandboxed REPOSITORY R271 KDBusAddons CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D5775?vs=14642=14782 BRANCH arcpatch-D5775 REVISION DETAIL

D5775: Don't include the pid in the dbus path when on flatpak

2017-05-23 Thread Albert Astals Cid
aacid added a comment. .kdbus In https://phabricator.kde.org/D5775#111234, @apol wrote: > In https://phabricator.kde.org/D5775#111230, @aacid wrote: > > > maybe not change the serviceName if not using flatpack? > > > We are not changing it, that's why we do the inSandbox

D5775: Don't include the pid in the dbus path when on flatpak

2017-05-22 Thread Aleix Pol Gonzalez
apol added a comment. In https://phabricator.kde.org/D5775#111230, @aacid wrote: > maybe not change the serviceName if not using flatpack? We are not changing it, that's why we do the inSandbox bit. REPOSITORY R271 KDBusAddons REVISION DETAIL

D5775: Don't include the pid in the dbus path when on flatpak

2017-05-22 Thread Albert Astals Cid
aacid added a comment. In https://phabricator.kde.org/D5775#111218, @apol wrote: > Can somebody point out a problem with this approach? Or approve instead? > If nobody does I'll just push the patch. maybe not change the serviceName if not using flatpack? REPOSITORY R271

D5775: Don't include the pid in the dbus path when on flatpak

2017-05-22 Thread Aleix Pol Gonzalez
apol added a comment. Can somebody point out a problem with this approach? Or approve instead? If nobody does I'll just push the patch. REPOSITORY R271 KDBusAddons REVISION DETAIL https://phabricator.kde.org/D5775 To: apol, #frameworks, jgrulich Cc: dfaure, davidedmundson, aacid

D5775: Don't include the pid in the dbus path when on flatpak

2017-05-18 Thread Jan Grulich
jgrulich added a comment. In https://phabricator.kde.org/D5775#110551, @apol wrote: > In https://phabricator.kde.org/D5775#110530, @jgrulich wrote: > > > In https://phabricator.kde.org/D5775#110529, @jgrulich wrote: > > > > > +1 > > > > > > good idea, it should solve all the

D5775: Don't include the pid in the dbus path when on flatpak

2017-05-18 Thread Aleix Pol Gonzalez
apol added a comment. In https://phabricator.kde.org/D5775#110530, @jgrulich wrote: > In https://phabricator.kde.org/D5775#110529, @jgrulich wrote: > > > +1 > > > > good idea, it should solve all the problems, we should use similar approach in KNotifications for SNI support. >

D5775: Don't include the pid in the dbus path when on flatpak

2017-05-18 Thread Jan Grulich
jgrulich added a comment. In https://phabricator.kde.org/D5775#110529, @jgrulich wrote: > +1 > > good idea, it should solve all the problems, we should use similar approach in KNotifications for SNI support. Actually this won't work for KNotifications and SNI, still problem

D5775: Don't include the pid in the dbus path when on flatpak

2017-05-18 Thread Jan Grulich
jgrulich added a comment. +1 good idea, it should solve all the problems, we should use similar approach in KNotifications for SNI support. REPOSITORY R271 KDBusAddons REVISION DETAIL https://phabricator.kde.org/D5775 To: apol, #frameworks, jgrulich Cc: dfaure, davidedmundson,

D5775: Don't include the pid in the dbus path when on flatpak

2017-05-17 Thread Aleix Pol Gonzalez
apol updated this revision to Diff 14642. apol added a comment. Fix reverse domain notation REPOSITORY R271 KDBusAddons CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D5775?vs=14541=14642 BRANCH arcpatch-D5775 REVISION DETAIL https://phabricator.kde.org/D5775 AFFECTED FILES

D5775: Don't include the pid in the dbus path when on flatpak

2017-05-16 Thread Jan Grulich
jgrulich added a comment. I think this still doesn't solve the general problem we have with sandboxed applications as you cannot still allow this dbus service in app manifest. You can use "org.kde.AppName.*" , but then the dbus name would need to be in form of "org.kde.AppName.appPid" or

D5775: Don't include the pid in the dbus path when on flatpak

2017-05-15 Thread Aleix Pol Gonzalez
apol updated this revision to Diff 14541. apol added a comment. Fix regression REPOSITORY R271 KDBusAddons CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D5775?vs=14301=14541 BRANCH arcpatch-D5775 REVISION DETAIL https://phabricator.kde.org/D5775 AFFECTED FILES

D5775: Don't include the pid in the dbus path when on flatpak

2017-05-13 Thread David Faure
dfaure added a comment. d_ed: I use the DBus name in multi mode to talk to running processes ;-) (for introspection, debugging, automation, etc.) REPOSITORY R271 KDBusAddons REVISION DETAIL https://phabricator.kde.org/D5775 To: apol, #frameworks, jgrulich Cc: dfaure,

D5775: Don't include the pid in the dbus path when on flatpak

2017-05-12 Thread David Edmundson
davidedmundson added a comment. Alternate suggestion: register app-name + QDbus::connection()->baseServiceName. it'll be guaranteed unique. (though does anything even use the DBus service name in multi mode? It doesn't seem to be very useful. kquitapp5 doesn't support it.)

D5775: Don't include the pid in the dbus path when on flatpak

2017-05-12 Thread Aleix Pol Gonzalez
apol added a comment. In https://phabricator.kde.org/D5775#108938, @jgrulich wrote: > Problem is that the name, even when the pid would be unique, won't be predictable. You still need to change it to something like org.kde.appName.pid so you can use org.kde.appName.* in flatpak

D5775: Don't include the pid in the dbus path when on flatpak

2017-05-11 Thread Jan Grulich
jgrulich added a comment. In https://phabricator.kde.org/D5775#108825, @apol wrote: > In https://phabricator.kde.org/D5775#108649, @jgrulich wrote: > > > In https://phabricator.kde.org/D5775#108558, @aacid wrote: > > > > > I don't think this is a fix. > > > > > > I can't

D5775: Don't include the pid in the dbus path when on flatpak

2017-05-11 Thread Aleix Pol Gonzalez
apol added a comment. In https://phabricator.kde.org/D5775#108649, @jgrulich wrote: > In https://phabricator.kde.org/D5775#108558, @aacid wrote: > > > I don't think this is a fix. > > > > I can't really i good faith recommend people to use Okular from a flatpak if that means they

D5775: Don't include the pid in the dbus path when on flatpak

2017-05-10 Thread Albert Astals Cid
aacid added a comment. I don't think this is a fix. I can't really i good faith recommend people to use Okular from a flatpak if that means they can't start two okular instances. REPOSITORY R271 KDBusAddons REVISION DETAIL https://phabricator.kde.org/D5775 To: apol, #frameworks,

D5775: Don't include the pid in the dbus path when on flatpak

2017-05-10 Thread Aleix Pol Gonzalez
apol added a comment. In https://phabricator.kde.org/D5775#108315, @aacid wrote: > This means we get the same path if we start the process twice, does it still work? Don't you get some kind of collision at the dbus level? Yes, with this patch you can only open 1 of the

D5775: Don't include the pid in the dbus path when on flatpak

2017-05-09 Thread Albert Astals Cid
aacid added a comment. This means we get the same path if we start the process twice, does it still work? Don't you get some kind of collision at the dbus level? REPOSITORY R271 KDBusAddons REVISION DETAIL https://phabricator.kde.org/D5775 To: apol, #frameworks, jgrulich Cc: aacid

D5775: Don't include the pid in the dbus path when on flatpak

2017-05-08 Thread Jan Grulich
jgrulich added a comment. Looks good, it really doesn't make sense to use pid when running app in flatpak, because you cannot guarantee what pid it will get and without that you cannot allow dbus access in app's flatpak manifest. REPOSITORY R271 KDBusAddons REVISION DETAIL

D5775: Don't include the pid in the dbus path when on flatpak

2017-05-08 Thread Aleix Pol Gonzalez
apol edited the test plan for this revision. REPOSITORY R271 KDBusAddons REVISION DETAIL https://phabricator.kde.org/D5775 To: apol, #frameworks, jgrulich

D5775: Don't include the pid in the dbus path when on flatpak

2017-05-08 Thread Aleix Pol Gonzalez
apol created this revision. Restricted Application added a project: Frameworks. REVISION SUMMARY Flatpak requests us to list the services that will be exposed to the outside, better have it the name of the application without a random number in the end. In these systems the pid doesn't add